mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
queue feed for refresh after a subscription
This commit is contained in:
@@ -37,6 +37,13 @@ public class FeedRefreshTaskGiver {
|
||||
.getBackgroundThreads();
|
||||
}
|
||||
|
||||
@Lock(LockType.WRITE)
|
||||
public void add(Feed feed) {
|
||||
queue.add(feed);
|
||||
feed.setLastUpdated(Calendar.getInstance().getTime());
|
||||
feedDAO.update(feed);
|
||||
}
|
||||
|
||||
@Lock(LockType.WRITE)
|
||||
public Feed take() {
|
||||
Feed feed = queue.poll();
|
||||
|
||||
Reference in New Issue
Block a user