Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

    • Constructor Summary

      Constructor Description
      RSSThread​(Engine engine, rssFile, int rssInterval)
      Create a new RSS thread.
    • 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's method starts, but before the WikiBackgroundThread.backgroundTask() task executes.
      • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RSSThread

        public RSSThread​(Engine engine,
                         int rssInterval)
        Create a new RSS thread.
        engine - A Engine to own this thread.
        rssFile - A File to write the RSS data to.
        rssInterval - How often the RSS should be generated.
    • Method Detail

      • 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 class WikiBackgroundThread
        java.lang.Exception - All exceptions are thrown upwards.
        See Also: