mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
disable feeds for a little bit when unable to refresh the feed several times in a row
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user