disable feeds for a little bit when unable to refresh the feed several times in a row

This commit is contained in:
Athou
2013-04-11 16:50:20 +02:00
parent 36a9a7a795
commit 70b6fd1fd3
4 changed files with 60 additions and 17 deletions

View File

@@ -36,6 +36,9 @@ public class Feed extends AbstractModel {
private int errorCount;
@Temporal(TemporalType.TIMESTAMP)
private Date disabledUntil;
@ManyToMany(mappedBy = "feeds")
private Set<FeedEntry> entries = Sets.newHashSet();
@@ -114,4 +117,12 @@ public class Feed extends AbstractModel {
this.errorCount = errorCount;
}
public Date getDisabledUntil() {
return disabledUntil;
}
public void setDisabledUntil(Date disabledUntil) {
this.disabledUntil = disabledUntil;
}
}