Class Dispatcher

  • All Implemented Interfaces:
    java.lang.Runnable

    class Dispatcher
    extends java.lang.Thread
    Deprecated.
    Since 1.3.
    Obsolete AsyncAppender dispatcher provided for compatibility only.
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      (package private) void close()
      Deprecated.
       
      void run()
      Deprecated.
      The dispatching strategy is to wait until there are events in the buffer to process.
      • 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
    • Method Detail

      • close

        void close()
        Deprecated.
      • run

        public void run()
        Deprecated.
        The dispatching strategy is to wait until there are events in the buffer to process. After having processed an event, we release the monitor (variable bf) so that new events can be placed in the buffer, instead of keeping the monitor and processing the remaining events in the buffer.

        Other approaches might yield better results.

        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread