Class MessageBatchConfig.Builder<T>
java.lang.Object
io.helidon.messaging.MessageBatchConfig.BuilderBase<T, MessageBatchConfig.Builder<T>, MessageBatchConfig<T>>
io.helidon.messaging.MessageBatchConfig.Builder<T>
- Type Parameters:
T- payload type
- All Implemented Interfaces:
Prototype.Builder<MessageBatchConfig.Builder<T>, MessageBatchConfig<T>>, Builder<MessageBatchConfig.Builder<T>, MessageBatch<T>>, Supplier<MessageBatch<T>>
- Enclosing interface:
MessageBatchConfig<T>
public static class MessageBatchConfig.Builder<T>
extends MessageBatchConfig.BuilderBase<T, MessageBatchConfig.Builder<T>, MessageBatchConfig<T>>
implements Builder<MessageBatchConfig.Builder<T>, MessageBatch<T>>
Fluent API builder for
MessageBatch.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class MessageBatchConfig.BuilderBase
add, addMessages, buildPrototype, clearMessages, from, from, id, id, messages, messages, preBuildPrototype, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault MessageBatch<T> get()default MessageBatchConfig.Builder<T> identity()Instance of this builder as the correct type.default MessageBatchConfig.Builder<T> update(Consumer<MessageBatchConfig.Builder<T>> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault MessageBatchConfig.Builder<T> self()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<MessageBatchConfig.Builder<T>, MessageBatchConfig<T>>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<MessageBatchConfig.Builder<T>, MessageBatch<T>>- Returns:
- instance of the built type
-