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 Type
    Method
    Description
    build(Babel runtime, NodeStore store, BabelNode identity, BabelProtocol protocol)
    Creates a new BabelChannel instance, registering it with the given runtime and limiting its interest to the provided message types.
  • Method Details

    • build

      BabelChannel build(Babel runtime, NodeStore store, BabelNode identity, BabelProtocol protocol)
      Creates a new BabelChannel instance, registering it with the given runtime and limiting its interest to the provided message types.
      Parameters:
      runtime - the owning Babel runtime
      store - the NodeStore that will be used by this channel
      identity - BabelNode object used to represent this Babel instance to other instances
      protocol - the protocol instance associated with this channel
      Returns:
      a ready-to-use BabelChannel