|
||||||||||
| 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
public class 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
(package private) Favorite |
currentRSSOwlFavorite
Favorite to update |
private static java.util.TreeSet |
dateList
The treeset holding each favorite that has a update interval |
private static java.util.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 java.lang.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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 java.lang.String[] updateIntervalNames
private static java.util.TreeSet dateList
private static java.util.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 Maincontroller| Method Detail |
|---|
public static void removeFavorite(Favorite rssOwlFavorite)
rssOwlFavorite - Favorite to removepublic static void updateFeedList(Favorite rssOwlFavorite)
rssOwlFavorite - Favorite to updatepublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||