Class MessagingExecutionConfig.Builder
java.lang.Object
io.helidon.messaging.MessagingExecutionConfig.BuilderBase<MessagingExecutionConfig.Builder, MessagingExecutionConfig>
io.helidon.messaging.MessagingExecutionConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<MessagingExecutionConfig.Builder, MessagingExecutionConfig>, Builder<MessagingExecutionConfig.Builder, MessagingExecutionConfig>, ConfigBuilderSupport.ConfiguredBuilder<MessagingExecutionConfig.Builder, MessagingExecutionConfig>, Supplier<MessagingExecutionConfig>
- Enclosing interface:
MessagingExecutionConfig
public static class MessagingExecutionConfig.Builder
extends MessagingExecutionConfig.BuilderBase<MessagingExecutionConfig.Builder, MessagingExecutionConfig>
implements Builder<MessagingExecutionConfig.Builder, MessagingExecutionConfig>
Fluent API builder for
MessagingExecutionConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class MessagingExecutionConfig.BuilderBase
admissionTimeout, admissionTimeout, buildPrototype, clearAdmissionTimeout, clearMaxInFlightMessages, clearMaxPendingAdmissions, clearMaxPendingMessages, clearQueueCapacity, config, config, from, from, maxInFlightMessages, maxInFlightMessages, maxPendingAdmissions, maxPendingAdmissions, maxPendingMessages, maxPendingMessages, preBuildPrototype, queueCapacity, queueCapacity, toString, validatePrototypeModifier and TypeMethodDescriptionOptional positive maximum time to wait for capacity, representable in nanoseconds.admissionTimeout(Duration admissionTimeout) Optional positive maximum time to wait for capacity, representable in nanoseconds.protected final MessagingExecutionConfigbuildPrototype(MessagingExecutionConfig.BuilderBase<?, ?> builder) Create a new prototype instance from a builder.Clear existing value of admissionTimeout.Clear existing value of maxInFlightMessages.Clear existing value of maxPendingAdmissions.Clear existing value of maxPendingMessages.Clear existing value of queueCapacity.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(MessagingExecutionConfig prototype) Update this builder from an existing prototype instance.from(MessagingExecutionConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Positive maximum number of admitted messages.maxInFlightMessages(int maxInFlightMessages) Positive maximum number of admitted messages.Positive maximum number of callers waiting for blocking admission and open connector reservations.maxPendingAdmissions(int maxPendingAdmissions) Positive maximum number of callers waiting for blocking admission and open connector reservations.Positive maximum total messages retained by waiting callers and open connector reservations.maxPendingMessages(int maxPendingMessages) Positive maximum total messages retained by waiting callers and open connector reservations.protected voidHandles providers and decorators.Maximum number of admitted tasks that may wait for an execution slot; must be zero or greater.queueCapacity(int queueCapacity) Maximum number of admitted tasks that may wait for an execution slot; must be zero or greater.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 MessagingExecutionConfigget()default MessagingExecutionConfig.Builderidentity()Instance of this builder as the correct type.default MessagingExecutionConfig.Builderupdate(Consumer<MessagingExecutionConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault MessagingExecutionConfig.Builderself()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<MessagingExecutionConfig.Builder, MessagingExecutionConfig>- 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<MessagingExecutionConfig.Builder, MessagingExecutionConfig>- Returns:
- instance of the built type
-