| Modifier and Type | Class and Description |
|---|---|
| private class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private volatile AsyncHandler. | |
| private final int | |
| private final BlockingQueue | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private final Thread |
| Access | Constructor and Description |
|---|---|
| public | AsyncHandler(final int
the queue length queueLength, final ThreadFactory the thread factory to use to construct the handler thread threadFactory)Construct a new instance. |
| public | AsyncHandler(final ThreadFactory
the thread factory to use to construct the handler thread threadFactory)Construct a new instance. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements java. Close all child handlers. |
| 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 AsyncHandler. | |
| public int | |
| public void | setOverflowAction(final AsyncHandler.
the overflow action overflowActionSet the overflow action. |
| DEFAULT_QUEUE_LENGTH | back to summary |
|---|---|
| private static final int DEFAULT_QUEUE_LENGTH | |
| overflowAction | back to summary |
|---|---|
| private volatile AsyncHandler. | |
| queueLength | back to summary |
|---|---|
| private final int queueLength | |
| recordQueue | back to summary |
|---|---|
| private final BlockingQueue<ExtLogRecord> recordQueue | |
| state | back to summary |
|---|---|
private volatile int state
| |
| stateUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<AsyncHandler> stateUpdater | |
| thread | back to summary |
|---|---|
| private final Thread thread | |
| AsyncHandler | back to summary |
|---|---|
| public AsyncHandler(final int queueLength, final ThreadFactory threadFactory) Construct a new instance.
| |
| AsyncHandler | back to summary |
|---|---|
| public AsyncHandler(final ThreadFactory threadFactory) Construct a new instance.
| |
| AsyncHandler | back to summary |
|---|---|
| public AsyncHandler(final int queueLength) Construct a new instance.
| |
| AsyncHandler | back to summary |
|---|---|
| public AsyncHandler() Construct a new instance. | |
| close | back to summary |
|---|---|
| public void close() throws SecurityException Overrides org. Implements java. Doc from org. Close all child handlers.
| |
| 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
| |
| getOverflowAction | back to summary |
|---|---|
| public AsyncHandler. Get the overflow action.
| |
| getQueueLength | back to summary |
|---|---|
| public int getQueueLength() The full size of the queue.
| |
| setOverflowAction | back to summary |
|---|---|
| public void setOverflowAction(final AsyncHandler. Set the overflow action.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| AsyncTask | back to summary |
|---|---|
| private AsyncTask() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AsyncHandler. | |
| public static final AsyncHandler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AsyncHandler. | |
| public static AsyncHandler. |
| BLOCK | back to summary |
|---|---|
| public static final AsyncHandler. | |
| DISCARD | back to summary |
|---|---|
| public static final AsyncHandler. | |
| OverflowAction | back to summary |
|---|---|
| private OverflowAction() | |
| valueOf | back to summary |
|---|---|
| public static AsyncHandler. | |
| values | back to summary |
|---|---|
| public static AsyncHandler. | |