Class DefaultAsyncWaitStrategyFactory
java.lang.Object
org.apache.logging.log4j.core.async.DefaultAsyncWaitStrategyFactory
- All Implemented Interfaces:
AsyncWaitStrategyFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static com.lmax.disruptor.WaitStrategy
createDefaultWaitStrategy
(String propertyName) com.lmax.disruptor.WaitStrategy
Creates and returns a non-null implementation of the LMAX Disruptor's WaitStrategy interface.private static String
getFullPropertyKey
(String strategyKey, String additionalKey) private static long
parseAdditionalLongProperty
(String propertyName, String additionalKey, long defaultValue)
-
Field Details
-
DEFAULT_WAIT_STRATEGY_CLASSNAME
-
LOGGER
-
propertyName
-
-
Constructor Details
-
DefaultAsyncWaitStrategyFactory
-
-
Method Details
-
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
-
getFullPropertyKey
-
parseAdditionalLongProperty
-