| Modifier and Type | Field and Description |
|---|---|
| private final Deque | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHandler(Handler
the handler to add handler)Overrides org. Add a sub-handler to this handler. |
| public void | addHandler(Handler
the handler to add (must not be handler, boolean null)true to replay the prior messages, or false to add the handler without replayingAdd the given handler, optionally atomically replaying the queue, allowing the delegate handler to receive all queued messages as well as all subsequent messages with no loss or reorder in between. |
| private static IllegalArgumentException | |
| protected void | doPublish(final ExtLogRecord
the log record to publish record)Overrides org. Do the actual work of publication; the record will have been filtered already. |
| public int | |
| public ExtLogRecord[] | Returns: the copy of the queueGet a copy of the queue as it is at an exact moment in time. |
| public String[] | Returns: the copy of the queue rendered as stringsGet a copy of the queue, rendering each record as a string. |
| public void | publish(final ExtLogRecord
the log record to publish record)Overrides org. Publish an |
| public void | publish(final LogRecord
description of the log event. A null record is
silently ignored and is not published record)Overrides org. Publish a |
| public void | |
| public void |
| buffer | back to summary |
|---|---|
| private final Deque<ExtLogRecord> buffer | |
| limit | back to summary |
|---|---|
| private int limit | |
| QueueHandler | back to summary |
|---|---|
| public QueueHandler() Construct a new instance with a default queue length. | |
| QueueHandler | back to summary |
|---|---|
| public QueueHandler(final int limit) Construct a new instance.
| |
| addHandler | back to summary |
|---|---|
| public void addHandler(Handler handler) throws SecurityException Overrides org. Doc from org. Add a sub-handler to this handler. Some handler types do not utilize sub-handlers.
| |
| addHandler | back to summary |
|---|---|
| public void addHandler(Handler handler, boolean replay) throws SecurityException Add the given handler, optionally atomically replaying the queue, allowing the delegate handler to receive all queued messages as well as all subsequent messages with no loss or reorder in between.
| |
| badQueueLength | back to summary |
|---|---|
| private static IllegalArgumentException badQueueLength() | |
| doPublish | back to summary |
|---|---|
| protected void doPublish(final ExtLogRecord record) Overrides org. Doc from org. Do the actual work of publication; the record will have been filtered already. The default implementation
does nothing except to flush if the
| |
| getLimit | back to summary |
|---|---|
| public int getLimit() Get the queue length limit. This is the number of messages that will be saved before old messages roll off of the queue.
| |
| getQueue | back to summary |
|---|---|
| public ExtLogRecord[] getQueue() Get a copy of the queue as it is at an exact moment in time.
| |
| getQueueAsStrings | back to summary |
|---|---|
| public String[] getQueueAsStrings() Get a copy of the queue, rendering each record as a string.
| |
| publish | back to summary |
|---|---|
| public void publish(final ExtLogRecord record) Overrides org. Doc from org. Publish an The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
The
| |
| publish | back to summary |
|---|---|
| public void publish(final LogRecord record) Overrides org. Doc from org. Publish a
The logging request was made initially to a
The
| |
| replay | back to summary |
|---|---|
| public void replay() Replay the stored queue to the nested handlers. | |
| setLimit | back to summary |
|---|---|
| public void setLimit(final int limit) Set the queue length limit. This is the number of messages that will be saved before old messages roll off of the queue.
| |