public class RSSThread extends WikiBackgroundThread
Thread.State, Thread.UncaughtExceptionHandler
MAX_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, shutdownTask
activeCount, 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, yield
public 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 WikiBackgroundThread
Exception
- Any exception can be thrown.public void backgroundTask() throws Exception
false
.backgroundTask
in class WikiBackgroundThread
Exception
- All exceptions are thrown upwards.Thread.run()
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.