Class ChainsawAppenderHandler.WorkQueue

  • Enclosing class:
    ChainsawAppenderHandler

    class ChainsawAppenderHandler.WorkQueue
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.ArrayList<org.apache.log4j.spi.LoggingEvent> queue  
      (package private) java.lang.Thread workerThread  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected WorkQueue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enqueue​(org.apache.log4j.spi.LoggingEvent event)  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • queue

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

        java.lang.Thread workerThread
    • Constructor Detail

      • WorkQueue

        protected WorkQueue()
    • Method Detail

      • enqueue

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

        public final void stop()