
public class RSSThread extends WikiBackgroundThread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
RSSThread(WikiEngine engine,
File rssFile,
int rssInterval)
Create a new RSS thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
backgroundTask()
Runs the RSS generator thread.
|
void |
startupTask()
Executes a task just after the thread's
Thread.run() method starts, but before the
WikiBackgroundThread.backgroundTask() task executes. |
actionPerformed, getEngine, run, shutdown, shutdownTaskactiveCount, checkAccess, clone, 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, yieldpublic RSSThread(WikiEngine engine, File rssFile, int rssInterval)
engine - A WikiEngine to own this thread.rssFile - A File to write the RSS data to.rssInterval - How often the RSS should be generated.public void startupTask() throws Exception
Thread.run() method starts, but before the
WikiBackgroundThread.backgroundTask() task executes. By default, this method does nothing; override it to implement
custom functionality.startupTask in class WikiBackgroundThreadException - Any exception can be thrown.public void backgroundTask() throws Exception
false.backgroundTask in class WikiBackgroundThreadException - All exceptions are thrown upwards.Thread.run()Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.