Package org.apache.johnzon.core
Class BufferStrategyFactory
java.lang.Object
org.apache.johnzon.core.BufferStrategyFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferStrategycreates a BufferStrategy based on the name.
-
Method Details
-
valueOf
creates a BufferStrategy based on the name. The following BufferStrategies are supported out of the box:- BY_INSTANCE
- THREAD_LOCAL
- QUEUE
- SINGLETON
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.
-