public final class LoggingEventBlockingQueue extends Object implements LoggingEventQueue
LoggingEvents for asynchronous dispatch. This is
backed by a LinkedBlockingQueue and is thread-safe.| Constructor and Description |
|---|
LoggingEventBlockingQueue(ActiveAsynchronousAppenderProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
LoggingEvent |
poll() |
void |
put(LoggingEvent loggingEvent)
Inserts the specified element at the tail of this queue, waiting if
necessary for space to become available, and notifies all waiting threads.
|
LoggingEvent |
take()
Retrieves and removes the head element of this queue, waiting if necessary
until an element becomes available.
|
public LoggingEventBlockingQueue(ActiveAsynchronousAppenderProperties properties)
public final LoggingEvent poll()
poll in interface LoggingEventQueueLoggingEventQueue.poll()public final void put(LoggingEvent loggingEvent) throws InterruptedException
LoggingEventQueueput in interface LoggingEventQueueInterruptedExceptionLoggingEventQueue.put(org.apache.log4j.spi.LoggingEvent)public final LoggingEvent take() throws InterruptedException
LoggingEventQueuetake in interface LoggingEventQueueInterruptedException - if interrupted whilst waiting.LoggingEventQueue.take()