Package | Description |
---|---|
org.apache.logging.log4j.core.async |
Provides Asynchronous Logger classes and interfaces for low-latency logging.
|
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 | Method and Description |
---|---|
static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.create()
Creates and returns
AsyncQueueFullPolicy instances based on user-specified system properties. |
Modifier and Type | Method and Description |
---|---|
static long |
DiscardingAsyncQueueFullPolicy.getDiscardCount(AsyncQueueFullPolicy router) |
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.