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

java.lang.Object
io.helidon.messaging.MessageBatchConfig.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:
MessageBatchConfig.Builder
Enclosing interface:
MessageBatchConfig<T>

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

    • BuilderBase

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

    • from

      public BUILDER from(MessageBatchConfig<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(MessageBatchConfig.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
    • id

      public BUILDER id(String id)
      Opaque delivery correlation ID. Defaults to a random UUID generated for each builder.
      Parameters:
      id - identity
      Returns:
      updated builder instance
      See Also:
    • clearMessages

      public BUILDER clearMessages()
      Clear all messages.
      Returns:
      updated builder instance
      See Also:
    • messages

      public BUILDER messages(List<Message<T>> messages)
      Ordered messages. The builder's messages method replaces the current list, while add and addMessages append.
      Parameters:
      messages - messages
      Returns:
      updated builder instance
      See Also:
    • addMessages

      public BUILDER addMessages(List<Message<T>> messages)
      Ordered messages. The builder's messages method replaces the current list, while add and addMessages append.
      Parameters:
      messages - messages
      Returns:
      updated builder instance
      See Also:
    • add

      public BUILDER add(Message<T> add)
      Ordered messages. The builder's messages method replaces the current list, while add and addMessages append.
      Parameters:
      add - add single messages
      Returns:
      updated builder instance
      See Also:
    • id

      public String id()
      Opaque delivery correlation ID. Defaults to a random UUID generated for each builder.
      Returns:
      identity
    • messages

      public List<Message<T>> messages()
      Ordered messages. The builder's messages method replaces the current list, while add and addMessages append.
      Returns:
      messages
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.
    • buildPrototype

      protected final MessageBatchConfig<T> buildPrototype(MessageBatchConfig.BuilderBase<T,?,?> builder)
      Create a new prototype instance from a builder.
      Parameters:
      builder - builder used to create the prototype
      Returns:
      new prototype instance