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 typeBUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOrdered messages.addMessages(List<Message<T>> messages) Ordered messages.protected final MessageBatchConfig<T> buildPrototype(MessageBatchConfig.BuilderBase<T, ?, ?> builder) Create a new prototype instance from a builder.Clear all messages.from(MessageBatchConfig.BuilderBase<T, ?, ?> builder) Update this builder from an existing prototype builder instance.from(MessageBatchConfig<T> prototype) Update this builder from an existing prototype instance.id()Opaque delivery correlation ID.Opaque delivery correlation ID.messages()Ordered messages.Ordered messages.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
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
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
id
-
clearMessages
-
messages
-
addMessages
-
add
-
id
Opaque delivery correlation ID. Defaults to a random UUID generated for each builder.- Returns:
- identity
-
messages
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
buildPrototype
Create a new prototype instance from a builder.- Parameters:
builder- builder used to create the prototype- Returns:
- new prototype instance
-