Class ChainsawAppenderHandler.WorkQueue

java.lang.Object
org.apache.log4j.chainsaw.ChainsawAppenderHandler.WorkQueue
Enclosing class:
ChainsawAppenderHandler

class ChainsawAppenderHandler.WorkQueue extends Object
Queue of Events are placed in here, which are picked up by an asychronous thread. The WorkerThread looks for events once a second and processes all events accumulated during that time..
  • Field Details

    • queue

      final ArrayList<org.apache.log4j.spi.LoggingEvent> queue
    • workerThread

      Thread workerThread
  • Constructor Details

    • WorkQueue

      protected WorkQueue()
  • Method Details

    • enqueue

      public final void enqueue(org.apache.log4j.spi.LoggingEvent event)
    • stop

      public final void stop()