Class MessagingChannel.BuilderBase<T, BUILDER extends MessagingChannel.BuilderBase<T, BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingChannel<T>>

java.lang.Object
io.helidon.messaging.MessagingChannel.BuilderBase<T, BUILDER, PROTOTYPE>
Type Parameters:
T - payload type
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>
Direct Known Subclasses:
MessagingChannel.Builder
Enclosing interface:
MessagingChannel<T>

public abstract static class MessagingChannel.BuilderBase<T, BUILDER extends MessagingChannel.BuilderBase<T, BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingChannel<T>> extends Object implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for MessagingChannel.
  • Constructor Details

    • BuilderBase

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

    • from

      public BUILDER from(MessagingChannel<T> 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(MessagingChannel.BuilderBase<T,?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • name

      public BUILDER name(String name)
      Channel name.
      Parameters:
      name - channel name
      Returns:
      updated builder instance
      See Also:
    • payloadType

      public BUILDER payloadType(GenericType<T> payloadType)
      Complete channel payload type.
      Parameters:
      payloadType - payload type
      Returns:
      updated builder instance
      See Also:
    • name

      public Optional<String> name()
      Channel name.
      Returns:
      channel name
    • payloadType

      public Optional<GenericType<T>> payloadType()
      Complete channel payload type.
      Returns:
      payload type
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.