Package org.apache.log4j.chainsaw
Class ChainsawAppenderHandler.WorkQueue
- java.lang.Object
-
- org.apache.log4j.chainsaw.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..
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ChainsawAppenderHandler.WorkQueue.WorkerThread
The worker thread converts each queued event to a vector and forwards the vector on to the UI.
-
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()
-