appender enqueueing log entries into a LinkedBlockingQueue and using a
secondary, separate Thread to forward them to a configured nested appender.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final AccessLogAppender | |
| private static final Logger | |
| private final LinkedBlockingQueue | |
| private final Thread |
| Access | Constructor and Description |
|---|---|
| public | QueueingAppender(AccessLogAppender appender)
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(String accessLogEntry)
Implements org. Append the specified access log entry. |
| public void | close()
Implements org. Close any underlying resource owned by this appender. |
| appender | back to summary |
|---|---|
| private final AccessLogAppender appender | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| queue | back to summary |
|---|---|
| private final LinkedBlockingQueue<String> queue | |
| thread | back to summary |
|---|---|
| private final Thread thread | |
| QueueingAppender | back to summary |
|---|---|
| public QueueingAppender(AccessLogAppender appender) Create a new | |
| append | back to summary |
|---|---|
| public void append(String accessLogEntry) throws IOException Implements org. Doc from org. Append the specified access log entry.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Close any underlying resource owned by this appender.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| Dequeuer | back to summary |
|---|---|
| private Dequeuer() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |