Class QueueingAppender
java.lang.Object
org.glassfish.grizzly.http.server.accesslog.QueueingAppender
- All Implemented Interfaces:
Closeable,AutoCloseable,AccessLogAppender
An
appender enqueueing log entries into a
LinkedBlockingQueue and using a secondary, separate Thread
to forward them to a configured nested appender.- Author:
- Pier Fumagalli, USRZ.com
-
Constructor Summary
ConstructorsConstructorDescriptionQueueingAppender(AccessLogAppender appender) Create a newQueueingAppenderinstance enqueueing log entries into aLinkedBlockingQueueand dequeueing them using a secondary separateThread. -
Method Summary
-
Constructor Details
-
QueueingAppender
Create a newQueueingAppenderinstance enqueueing log entries into aLinkedBlockingQueueand dequeueing them using a secondary separateThread.
-
-
Method Details
-
append
Description copied from interface:AccessLogAppenderAppend the specified access log entry.- Specified by:
appendin interfaceAccessLogAppender- Parameters:
accessLogEntry- TheStringvalue of the data to be append in the access log.- Throws:
IOException- If an I/O error occurred appending to the log.
-
close
Description copied from interface:AccessLogAppenderClose any underlying resource owned by this appender.- Specified by:
closein interfaceAccessLogAppender- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-