Class MessagingChannelConfig.BuilderBase<BUILDER extends MessagingChannelConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingChannelConfig>

java.lang.Object
io.helidon.messaging.spi.MessagingChannelConfig.BuilderBase<BUILDER, PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Direct Known Subclasses:
MessagingChannelConfig.Builder, MessagingIncomingConfig.BuilderBase, MessagingOutgoingConfig.BuilderBase
Enclosing interface:
MessagingChannelConfig

public abstract static class MessagingChannelConfig.BuilderBase<BUILDER extends MessagingChannelConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingChannelConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for MessagingChannelConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(MessagingChannelConfig prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(MessagingChannelConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends MessagingChannelConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingChannelConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • connector

      public BUILDER connector(String connector)
      Name of the configured connector instance used by this channel connection.
      Parameters:
      connector - connector instance name
      Returns:
      updated builder instance
      See Also:
    • channelName

      public BUILDER channelName(String channelName)
      Logical messaging channel name. Configuration-based channels derive this name from their map entry. Programmatic channel configurations supply the name explicitly.
      Parameters:
      channelName - logical channel name
      Returns:
      updated builder instance
      See Also:
    • execution

      public BUILDER execution(MessagingExecutionConfig execution)
      Execution overrides for this channel. Values not configured inherit the messaging defaults.
      Parameters:
      execution - channel execution overrides
      Returns:
      updated builder instance
      See Also:
    • execution

      public BUILDER execution(Consumer<MessagingExecutionConfig.Builder> consumer)
      Execution overrides for this channel. Values not configured inherit the messaging defaults.
      Parameters:
      consumer - consumer of builder of channel execution overrides
      Returns:
      updated builder instance
      See Also:
    • execution

      public BUILDER execution(Supplier<? extends MessagingExecutionConfig> supplier)
      Execution overrides for this channel. Values not configured inherit the messaging defaults.
      Parameters:
      supplier - supplier of channel execution overrides
      Returns:
      updated builder instance
      See Also:
    • connector

      public Optional<String> connector()
      Name of the configured connector instance used by this channel connection.
      Returns:
      connector instance name
    • channelName

      public Optional<String> channelName()
      Logical messaging channel name. Configuration-based channels derive this name from their map entry. Programmatic channel configurations supply the name explicitly.
      Returns:
      logical channel name
    • execution

      public MessagingExecutionConfig execution()
      Execution overrides for this channel. Values not configured inherit the messaging defaults.
      Returns:
      channel execution overrides
    • config

      public Optional<Config> config()
      Original channel configuration node, including connector-specific options.
      Returns:
      original configuration, if configured
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.