Class MessagingExecutionConfig.BuilderBase<BUILDER extends MessagingExecutionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingExecutionConfig>
- Type Parameters:
BUILDER- 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>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
MessagingExecutionConfig.Builder
- Enclosing interface:
MessagingExecutionConfig
MessagingExecutionConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier 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 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
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends MessagingExecutionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingExecutionConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearQueueCapacity
Clear existing value of queueCapacity.- Returns:
- updated builder instance
- See Also:
-
queueCapacity
Maximum number of admitted tasks that may wait for an execution slot; must be zero or greater.Zero disables internal buffering; callers may still wait before admission, subject to
maxPendingAdmissions().- Parameters:
queueCapacity- queue capacity- Returns:
- updated builder instance
- See Also:
-
clearMaxPendingAdmissions
Clear existing value of maxPendingAdmissions.- Returns:
- updated builder instance
- See Also:
-
maxPendingAdmissions
Positive maximum number of callers waiting for blocking admission and open connector reservations.Waiting callers retain their own delivery until capacity becomes available. A connector reservation retains one permit from reservation until it is started or closed, including while the connector acquires transport data. Immediately admitted callers do not consume this budget.
- Parameters:
maxPendingAdmissions- maximum pending admissions- Returns:
- updated builder instance
- See Also:
-
clearMaxPendingMessages
Clear existing value of maxPendingMessages.- Returns:
- updated builder instance
- See Also:
-
maxPendingMessages
Positive maximum total messages retained by waiting callers and open connector reservations.An open connector reservation retains its declared maximum while the connector may acquire transport data. Immediately admissible caller deliveries do not consume this budget. A delivery that cannot fit is rejected instead of parking while retaining unaccounted messages.
- Parameters:
maxPendingMessages- maximum pending messages- Returns:
- updated builder instance
- See Also:
-
clearMaxInFlightMessages
Clear existing value of maxInFlightMessages.- Returns:
- updated builder instance
- See Also:
-
maxInFlightMessages
Positive maximum number of admitted messages.This includes queued and executing work and completed connector deliveries whose admission lease remains held until transport settlement or abandonment.
- Parameters:
maxInFlightMessages- maximum in-flight message count- Returns:
- updated builder instance
- See Also:
-
clearAdmissionTimeout
Clear existing value of admissionTimeout.- Returns:
- updated builder instance
- See Also:
-
admissionTimeout
Optional positive maximum time to wait for capacity, representable in nanoseconds.For a two-phase connector delivery, capacity-wait time while reserving and starting shares this single budget; transport acquisition time between those phases is excluded.
- Parameters:
admissionTimeout- admission timeout- Returns:
- updated builder instance
- See Also:
-
queueCapacity
Maximum number of admitted tasks that may wait for an execution slot; must be zero or greater.Zero disables internal buffering; callers may still wait before admission, subject to
maxPendingAdmissions().- Returns:
- queue capacity
-
maxPendingAdmissions
Positive maximum number of callers waiting for blocking admission and open connector reservations.Waiting callers retain their own delivery until capacity becomes available. A connector reservation retains one permit from reservation until it is started or closed, including while the connector acquires transport data. Immediately admitted callers do not consume this budget.
- Returns:
- maximum pending admissions
-
maxPendingMessages
Positive maximum total messages retained by waiting callers and open connector reservations.An open connector reservation retains its declared maximum while the connector may acquire transport data. Immediately admissible caller deliveries do not consume this budget. A delivery that cannot fit is rejected instead of parking while retaining unaccounted messages.
- Returns:
- maximum pending messages
-
maxInFlightMessages
-
admissionTimeout
Optional positive maximum time to wait for capacity, representable in nanoseconds.For a two-phase connector delivery, capacity-wait time while reserving and starting shares this single budget; transport acquisition time between those phases is excluded.
- Returns:
- admission timeout
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
buildPrototype
protected final MessagingExecutionConfig buildPrototype(MessagingExecutionConfig.BuilderBase<?, ?> builder) Create a new prototype instance from a builder.- Parameters:
builder- builder used to create the prototype- Returns:
- new prototype instance
-
config
-