Interface BabelChannelBuilder
- All Known Implementing Classes:
AbstractBabelChannelBuilder, AbstractIPBabelChannelBuilder, InternalBabelChannelBuilder, LegacySimpleServerBabelChannelBuilder, QUICBabelChannelBuilder, TCPBabelChannelBuilder, TLSBabelChannelBuilder, UDPBabelChannelBuilder
public interface BabelChannelBuilder
Factory interface for creating
BabelChannel instances during runtime
initialisation.
Each protocol registered with BabelBootstrap is associated with a pair of factories: one for its
persistent-connection channel and one for its ephemeral (one-shot send)
channel. The runtime calls build(Babel, NodeStore, BabelNode, BabelProtocol) once per factory during
the build phase.
-
Method Summary
Modifier and TypeMethodDescriptionbuild(Babel runtime, NodeStore store, BabelNode identity, BabelProtocol protocol) Creates a newBabelChannelinstance, registering it with the givenruntimeand limiting its interest to the provided message types.
-
Method Details
-
build
Creates a newBabelChannelinstance, registering it with the givenruntimeand limiting its interest to the provided message types.- Parameters:
runtime- the owningBabelruntimestore- theNodeStorethat will be used by this channelidentity-BabelNodeobject used to represent this Babel instance to other instancesprotocol- the protocol instance associated with this channel- Returns:
- a ready-to-use
BabelChannel
-