Class DefaultAsyncWaitStrategyFactory

java.lang.Object
org.apache.logging.log4j.core.async.DefaultAsyncWaitStrategyFactory
All Implemented Interfaces:
AsyncWaitStrategyFactory

class DefaultAsyncWaitStrategyFactory extends Object implements AsyncWaitStrategyFactory
  • Field Details

    • DEFAULT_WAIT_STRATEGY_CLASSNAME

      static final String DEFAULT_WAIT_STRATEGY_CLASSNAME
    • LOGGER

      private static final Logger LOGGER
    • propertyName

      private final String propertyName
  • Constructor Details

    • DefaultAsyncWaitStrategyFactory

      public DefaultAsyncWaitStrategyFactory(String propertyName)
  • 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 interface AsyncWaitStrategyFactory
      Returns:
      the WaitStrategy instance to be used by Async Loggers and Async LoggerConfigs
    • createDefaultWaitStrategy

      static com.lmax.disruptor.WaitStrategy createDefaultWaitStrategy(String propertyName)
    • getFullPropertyKey

      private static String getFullPropertyKey(String strategyKey, String additionalKey)
    • parseAdditionalLongProperty

      private static long parseAdditionalLongProperty(String propertyName, String additionalKey, long defaultValue)