Class DefaultAsyncWaitStrategyFactory

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • DefaultAsyncWaitStrategyFactory

        public DefaultAsyncWaitStrategyFactory​(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 interface AsyncWaitStrategyFactory
        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)