public class QueueingAppender extends java.lang.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(java.lang.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(java.lang.String accessLogEntry)
throws java.io.IOException
AccessLogAppenderappend in interface AccessLogAppenderaccessLogEntry - The String value of the data to be append
in the access log.java.io.IOException - If an I/O error occurred appending to the log.public void close()
throws java.io.IOException
AccessLogAppenderclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface AccessLogAppenderjava.io.IOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.