com.ecyrd.jspwiki.rss
Class RSSThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.ecyrd.jspwiki.util.WikiBackgroundThread
          extended by com.ecyrd.jspwiki.rss.RSSThread
All Implemented Interfaces:
WikiEventListener, Runnable

public class RSSThread
extends WikiBackgroundThread

Runs the RSS generation thread. FIXME: MUST be somewhere else, this is not a good place.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RSSThread(WikiEngine engine, File rssFile, int rssInterval)
           
 
Method Summary
 void backgroundTask()
          Runs the RSS generator thread.
 
Methods inherited from class com.ecyrd.jspwiki.util.WikiBackgroundThread
actionPerformed, run, shutdownTask, startupTask
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RSSThread

public RSSThread(WikiEngine engine,
                 File rssFile,
                 int rssInterval)
Method Detail

backgroundTask

public void backgroundTask()
                    throws 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 class WikiBackgroundThread
Throws:
Exception
See Also:
Thread.run()