java.lang.Object
org.apache.johnzon.core.BufferStrategyFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferStrategycreates a BufferStrategy based on the name.
-
Field Details
-
DEFAULT_STRATEGIES
-
-
Constructor Details
-
BufferStrategyFactory
private BufferStrategyFactory()
-
-
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.
-