Interface MessageBatchConfig<T>

Type Parameters:
T - payload type
All Superinterfaces:
Prototype.Api, Prototype.Factory<MessageBatch<T>>

public sealed interface MessageBatchConfig<T> extends Prototype.Api
Message batch construction options.
See Also:
  • Method Details

    • builder

      static <T> MessageBatchConfig.Builder<T> builder()
      Create a new fluent API builder to customize configuration.
      Type Parameters:
      T - payload type
      Returns:
      a new builder
    • builder

      static <T> MessageBatchConfig.Builder<T> builder(MessageBatchConfig<T> instance)
      Create a new fluent API builder from an existing instance.
      Type Parameters:
      T - payload type
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • id

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

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