Class DefaultAsyncWaitStrategyFactory
- java.lang.Object
-
- org.apache.logging.log4j.core.async.DefaultAsyncWaitStrategyFactory
-
- All Implemented Interfaces:
AsyncWaitStrategyFactory
class DefaultAsyncWaitStrategyFactory extends java.lang.Object implements AsyncWaitStrategyFactory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
DEFAULT_WAIT_STRATEGY_CLASSNAME
private static Logger
LOGGER
private java.lang.String
propertyName
-
Constructor Summary
Constructors Constructor Description DefaultAsyncWaitStrategyFactory(java.lang.String propertyName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static com.lmax.disruptor.WaitStrategy
createDefaultWaitStrategy(java.lang.String propertyName)
com.lmax.disruptor.WaitStrategy
createWaitStrategy()
Creates and returns a non-null implementation of the LMAX Disruptor's WaitStrategy interface.private static java.lang.String
getFullPropertyKey(java.lang.String strategyKey, java.lang.String additionalKey)
private static long
parseAdditionalLongProperty(java.lang.String propertyName, java.lang.String additionalKey, long defaultValue)
-
-
-
Field Detail
-
DEFAULT_WAIT_STRATEGY_CLASSNAME
static final java.lang.String DEFAULT_WAIT_STRATEGY_CLASSNAME
-
LOGGER
private static final Logger LOGGER
-
propertyName
private final java.lang.String propertyName
-
-
Method Detail
-
createWaitStrategy
public com.lmax.disruptor.WaitStrategy createWaitStrategy()
Description copied from interface:AsyncWaitStrategyFactory
Creates and returns a non-null implementation of the LMAX Disruptor's WaitStrategy interface. This WaitStrategy will be used by Log4j Async Loggers and Async LoggerConfigs.- Specified by:
createWaitStrategy
in interfaceAsyncWaitStrategyFactory
- Returns:
- the WaitStrategy instance to be used by Async Loggers and Async LoggerConfigs
-
createDefaultWaitStrategy
static com.lmax.disruptor.WaitStrategy createDefaultWaitStrategy(java.lang.String propertyName)
-
getFullPropertyKey
private static java.lang.String getFullPropertyKey(java.lang.String strategyKey, java.lang.String additionalKey)
-
parseAdditionalLongProperty
private static long parseAdditionalLongProperty(java.lang.String propertyName, java.lang.String additionalKey, long defaultValue)
-
-