Class BufferStrategyFactory


  • public class BufferStrategyFactory
    extends Object
    • Constructor Detail

      • BufferStrategyFactory

        private BufferStrategyFactory()
    • Method Detail

      • valueOf

        public static BufferStrategy valueOf​(String strategyName)
        creates a BufferStrategy based on the name. The following BufferStrategies are supported out of the box:
        • BY_INSTANCE
        • THREAD_LOCAL
        • QUEUE
        • SINGLETON
        You can also pass in a fully qualified class name of a custom BufferStrategy.
        Parameters:
        strategyName - one of the supported BufferStrategies as per above
        Returns:
        an instance of the chosen BufferStrategy
        Throws:
        IllegalArgumentException - if the given strategyName does not resolve to a BufferStrategy.