Interface BabelProtocolHolderFactory
- All Known Implementing Classes:
DedicatedExecutorProtocolHolderFactory, NettyExecutorProtocolHolderFactory, SharedExecutorProtocolHolderFactory
public interface BabelProtocolHolderFactory
Factory interface for creating instances of
BabelProtocolHolder.
Implementations define the execution and concurrency model for registered protocols, such as shared multi-threaded execution or dedicated single-threaded execution.
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(BabelProtocol protocol, Set<ProtocolExtension<? extends BabelProtocol>> extensions) Creates a newBabelProtocolHolderwrapping the given protocol and extensions.
-
Method Details
-
createInstance
BabelProtocolHolder createInstance(BabelProtocol protocol, Set<ProtocolExtension<? extends BabelProtocol>> extensions) Creates a newBabelProtocolHolderwrapping the given protocol and extensions.- Parameters:
protocol- the protocol instance to wrapextensions- the set of protocol extensions configured for the protocol- Returns:
- a new
BabelProtocolHoldermanaging the protocol
-