Class BufferStrategyFactory

java.lang.Object
org.apache.johnzon.core.BufferStrategyFactory

public class BufferStrategyFactory extends Object
  • Field Details

  • Constructor Details

    • BufferStrategyFactory

      private BufferStrategyFactory()
  • Method Details

    • 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.