|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
net.sourceforge.rssowl.controller.thread.FeedAutoUpdater
The RSSAutoUpdater checks a Hashtable every 5 seconds and reloads each Favorite which update date is before the current date. After reload the AutoUpdater will remove the update date from the Hashtable and put a new one in it, which is calculated with the update interval value of the Favorite.
Field Summary | |
(package private) Favorite |
currentRSSOwlFavorite
Favorite to update |
private static TreeSet |
dateList
The treeset holding each favorite that has a update interval |
private static Hashtable |
feedList
The hashtable holding each favorite that has a update interval |
(package private) GUI |
rssOwlGui
The RSSOwl Maincontroller |
private static long |
uniqueCounter
This long is used to create unique dates |
private static int |
UPDATE_INTERVAL
Interval to look for favorites that need an update |
static int[] |
updateInterval
Array containing the possible auto-update values |
static String[] |
updateIntervalNames
Array containing the i18n values for the update intervals |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
FeedAutoUpdater(GUI rssOwlGui)
Instantiates a new FeedAutoUpdater |
Method Summary | |
static void |
removeFavorite(Favorite rssOwlFavorite)
This method removes a Favorite from the feedList. |
void |
run()
Check the feedList in a certain interval and update the next favorite which update date is before the current date. |
static void |
updateFeedList(Favorite rssOwlFavorite)
Update the feedList. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int[] updateInterval
public static String[] updateIntervalNames
private static TreeSet dateList
private static Hashtable feedList
private static long uniqueCounter
private static final int UPDATE_INTERVAL
Favorite currentRSSOwlFavorite
GUI rssOwlGui
Constructor Detail |
public FeedAutoUpdater(GUI rssOwlGui)
rssOwlGui
- The RSSOwl MaincontrollerMethod Detail |
public static void removeFavorite(Favorite rssOwlFavorite)
rssOwlFavorite
- Favorite to removepublic static void updateFeedList(Favorite rssOwlFavorite)
rssOwlFavorite
- Favorite to updatepublic void run()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |