Package org.apache.wiki.rss
Class RSSThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.wiki.WikiBackgroundThread
-
- org.apache.wiki.rss.RSSThread
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.EventListener
,WikiEventListener
public class RSSThread extends WikiBackgroundThread
Runs the RSS generation thread. FIXME: MUST be somewhere else, this is not a good place.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
backgroundTask()
Runs the RSS generator thread.void
startupTask()
Executes a task just after the thread'sThread.run()
method starts, but before theWikiBackgroundThread.backgroundTask()
task executes.-
Methods inherited from class org.apache.wiki.WikiBackgroundThread
actionPerformed, getEngine, run, shutdown, shutdownTask
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
startupTask
public void startupTask()
Executes a task just after the thread'sThread.run()
method starts, but before theWikiBackgroundThread.backgroundTask()
task executes. By default, this method does nothing; override it to implement custom functionality.- Overrides:
startupTask
in classWikiBackgroundThread
-
backgroundTask
public void backgroundTask() throws java.lang.Exception
Runs the RSS generator thread. If a previous RSS generation operation encountered a file I/O or other error, this method will turn off generation.false
.- Specified by:
backgroundTask
in classWikiBackgroundThread
- Throws:
java.lang.Exception
- All exceptions are thrown upwards.- See Also:
Thread.run()
-
-