Class MessagingChannel.Builder<T>
java.lang.Object
io.helidon.messaging.MessagingChannel.BuilderBase<T, MessagingChannel.Builder<T>, MessagingChannel<T>>
io.helidon.messaging.MessagingChannel.Builder<T>
- Type Parameters:
T- payload type
- All Implemented Interfaces:
Prototype.Builder<MessagingChannel.Builder<T>, MessagingChannel<T>>, Builder<MessagingChannel.Builder<T>, MessagingChannel<T>>, Supplier<MessagingChannel<T>>
- Enclosing interface:
MessagingChannel<T>
public static class MessagingChannel.Builder<T>
extends MessagingChannel.BuilderBase<T, MessagingChannel.Builder<T>, MessagingChannel<T>>
implements Builder<MessagingChannel.Builder<T>, MessagingChannel<T>>
Fluent API builder for
MessagingChannel.-
Nested Class Summary
Nested classes/interfaces inherited from class MessagingChannel.BuilderBase
MessagingChannel.BuilderBase.MessagingChannelImpl<T>Modifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class MessagingChannel.BuilderBase
from, from, name, name, payloadType, payloadType, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionfrom(MessagingChannel.BuilderBase<T, ?, ?> builder) Update this builder from an existing prototype builder instance.from(MessagingChannel<T> prototype) Update this builder from an existing prototype instance.name()Channel name.Channel name.Complete channel payload type.payloadType(GenericType<T> payloadType) Complete channel payload type.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 MessagingChannel<T> get()default MessagingChannel.Builder<T> identity()Instance of this builder as the correct type.default MessagingChannel.Builder<T> update(Consumer<MessagingChannel.Builder<T>> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault MessagingChannel.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<MessagingChannel.Builder<T>, MessagingChannel<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<MessagingChannel.Builder<T>, MessagingChannel<T>>- Returns:
- instance of the built type
-