Interface MessageBatchConfig<T>
- Type Parameters:
T- payload type
- All Superinterfaces:
Prototype.Api, Prototype.Factory<MessageBatch<T>>
Message batch construction options.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forMessageBatch.static classMessageBatchConfig.BuilderBase<T, BUILDER extends MessageBatchConfig.BuilderBase<T, BUILDER, PROTOTYPE>, PROTOTYPE extends MessageBatchConfig<T>>Fluent API builder base forMessageBatchConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MessageBatchConfig.Builder<T> builder()Create a new fluent API builder to customize configuration.static <T> MessageBatchConfig.Builder<T> builder(MessageBatchConfig<T> instance) Create a new fluent API builder from an existing instance.id()Opaque delivery correlation ID.messages()Ordered messages.Methods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Type Parameters:
T- payload type- Returns:
- a new builder
-
builder
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
-