Interface ChannelFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ChannelFactory
Constructs a Channel instance from the resolved routing config and provider-specific properties.
  • Method Details

    • create

      Channel create(String channelId, ChannelConfig routing, Map<String,Object> properties)
      Build the channel.
      Parameters:
      channelId - the logical channel id
      routing - the parsed routing config (defaultAgentId, dmScope, bindings)
      properties - provider-specific properties; never null but may be empty
      Returns:
      a fully constructed channel ready for init(Gateway) + start()