| java.lang.Object java.lang.Thread com.ecyrd.jspwiki.util.WikiBackgroundThread
All known Subclasses: com.ecyrd.jspwiki.rss.RSSThread,
Constructor Summary | |
public | WikiBackgroundThread(WikiEngine engine, int sleepInterval) Constructs a new instance of this background thread with
a specified sleep interval, and adds the new instance to the
wiki engine's event listeners. |
WikiBackgroundThread | public WikiBackgroundThread(WikiEngine engine, int sleepInterval)(Code) | | Constructs a new instance of this background thread with
a specified sleep interval, and adds the new instance to the
wiki engine's event listeners.
Parameters: engine - the wiki engine Parameters: sleepInterval - the interval between invocations ofthe thread's Thread.run method, in seconds |
backgroundTask | abstract public void backgroundTask() throws Exception(Code) | | Abstract method that performs the actual work for this
background thread; subclasses must implement this method.
|
getEngine | public WikiEngine getEngine()(Code) | | Returns the WikiEngine that created this background thread.
the wiki engine |
shutdown | public void shutdown()(Code) | | Requests the shutdown of this background thread. Note that the shutdown
is not immediate.
since: 2.4.92 |
shutdownTask | public void shutdownTask() throws Exception(Code) | | Executes a task after shutdown signal was detected.
By default, this method does nothing; override it
to implement custom functionality.
|
|
|