Package net.i2p.router.update
Class NewsTimerTask
- java.lang.Object
-
- net.i2p.router.update.NewsTimerTask
-
- All Implemented Interfaces:
SimpleTimer.TimedEvent
class NewsTimerTask extends Object implements SimpleTimer.TimedEvent
Task to periodically look for updates to the news.xml, and to keep track of whether that has an announcement for a new version. Also looks for unsigned updates. Runs forever on instantiation, can't be stopped.- Since:
- 0.9.4 moved from NewsFetcher
-
-
Constructor Summary
Constructors Constructor Description NewsTimerTask(RouterContext ctx, ConsoleUpdateManager mgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
timeReached()
the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)
-
-
-
Constructor Detail
-
NewsTimerTask
public NewsTimerTask(RouterContext ctx, ConsoleUpdateManager mgr)
-
-
Method Detail
-
timeReached
public void timeReached()
Description copied from interface:SimpleTimer.TimedEvent
the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)- Specified by:
timeReached
in interfaceSimpleTimer.TimedEvent
-
-