public class QueueingAppender extends Object implements AccessLogAppender
appender enqueueing log entries into a
LinkedBlockingQueue and using a secondary, separate Thread
to forward them to a configured nested appender.| Constructor and Description |
|---|
QueueingAppender(AccessLogAppender appender)
Create a new
QueueingAppender instance enqueueing log entries
into a LinkedBlockingQueue and dequeueing them using a secondary
separate Thread. |
| Modifier and Type | Method and Description |
|---|---|
void |
append(String accessLogEntry)
Append the specified access log entry.
|
void |
close()
Close any underlying resource owned by this appender.
|
public QueueingAppender(AccessLogAppender appender)
QueueingAppender instance enqueueing log entries
into a LinkedBlockingQueue and dequeueing them using a secondary
separate Thread.public void append(String accessLogEntry) throws IOException
AccessLogAppenderappend in interface AccessLogAppenderaccessLogEntry - The String value of the data to be append
in the access log.IOException - If an I/O error occurred appending to the log.public void close()
throws IOException
AccessLogAppenderclose in interface Closeableclose in interface AutoCloseableclose in interface AccessLogAppenderIOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.