Class Channel.Builder<PAYLOAD>

java.lang.Object
io.helidon.messaging.Channel.Builder<PAYLOAD>
Type Parameters:
PAYLOAD - message payload type
All Implemented Interfaces:
io.helidon.common.Builder<Channel.Builder<PAYLOAD>,Channel<PAYLOAD>>, Supplier<Channel<PAYLOAD>>
Enclosing class:
Channel<PAYLOAD>

public static final class Channel.Builder<PAYLOAD> extends Object implements io.helidon.common.Builder<Channel.Builder<PAYLOAD>,Channel<PAYLOAD>>
Channel builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public Channel.Builder<PAYLOAD> name(String name)
      Channel name, used to pair configuration of connectors vs. channel configuration.
      Parameters:
      name - channel name
      Returns:
      this builder
    • publisherConfig

      public Channel.Builder<PAYLOAD> publisherConfig(io.helidon.config.Config config)
      Config available to publisher connector.
      Parameters:
      config - config supplied to publishing connector
      Returns:
      this builder
    • subscriberConfig

      public Channel.Builder<PAYLOAD> subscriberConfig(io.helidon.config.Config config)
      Config available to subscriber connector.
      Parameters:
      config - config supplied to subscribing connector
      Returns:
      this builder
    • build

      public Channel<PAYLOAD> build()
      Specified by:
      build in interface io.helidon.common.Builder<Channel.Builder<PAYLOAD>,Channel<PAYLOAD>>
    • get

      public Channel<PAYLOAD> get()
      Specified by:
      get in interface io.helidon.common.Builder<Channel.Builder<PAYLOAD>,Channel<PAYLOAD>>
      Specified by:
      get in interface Supplier<PAYLOAD>