Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.async |
Provides Asynchronous Logger classes and interfaces for low-latency logging.
|
Modifier and Type | Field and Description |
---|---|
private AsyncQueueFullPolicy |
AsyncAppender.asyncQueueFullPolicy |
Modifier and Type | Class and Description |
---|---|
class |
DefaultAsyncQueueFullPolicy
Default router: enqueue the event for asynchronous logging in the background thread, unless the current thread is the
background thread and the queue is full (enqueueing would cause a deadlock).
|
class |
DiscardingAsyncQueueFullPolicy
Discarding router extends the DefaultAsyncQueueFullPolicy by first verifying if the queue is fuller than the specified
threshold ratio; if this is the case, log events more specific than
the specified threshold level are dropped.
|
Modifier and Type | Field and Description |
---|---|
private AsyncQueueFullPolicy |
AsyncLoggerConfigDisruptor.asyncQueueFullPolicy |
private AsyncQueueFullPolicy |
AsyncLoggerDisruptor.asyncQueueFullPolicy |
Modifier and Type | Method and Description |
---|---|
static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.create()
Creates and returns
AsyncQueueFullPolicy instances based on user-specified system properties. |
private static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.createCustomRouter(java.lang.String router) |
private static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.createDiscardingAsyncQueueFullPolicy() |
Modifier and Type | Method and Description |
---|---|
static long |
DiscardingAsyncQueueFullPolicy.getDiscardCount(AsyncQueueFullPolicy router) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
AsyncQueueFullPolicyFactory.isRouterSelected(java.lang.String propertyValue,
java.lang.Class<? extends AsyncQueueFullPolicy> policy,
java.lang.String shortPropertyValue) |