Class MessagingFailureConfig.BuilderBase<BUILDER extends MessagingFailureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingFailureConfig>
java.lang.Object
io.helidon.messaging.MessagingFailureConfig.BuilderBase<BUILDER, PROTOTYPE>
- 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:
MessagingFailureConfig.Builder
- Enclosing interface:
MessagingFailureConfig
public abstract static class MessagingFailureConfig.BuilderBase<BUILDER extends MessagingFailureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingFailureConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
MessagingFailureConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final MessagingFailureConfigbuildPrototype(MessagingFailureConfig.BuilderBase<?, ?> builder) Create a new prototype instance from a builder.Clear existing value of deadLetter.Clear existing value of onExhausted.Clear existing value of retry.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Dead-letter target override.deadLetter(DeadLetterConfig deadLetter) Dead-letter target override.deadLetter(Consumer<DeadLetterConfig.Builder> consumer) Dead-letter target override.deadLetter(Supplier<? extends DeadLetterConfig> supplier) Dead-letter target override.from(MessagingFailureConfig prototype) Update this builder from an existing prototype instance.from(MessagingFailureConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Disposition used when retry attempts are exhausted.onExhausted(FailureDisposition onExhausted) Disposition used when retry attempts are exhausted.protected voidHandles providers and decorators.retry()Complete retry instance for this incoming channel.Complete retry instance for this incoming channel.retry(RetryConfig retry) Complete retry instance for this incoming channel.retry(Consumer<RetryConfig.Builder> consumer) Complete retry instance for this incoming channel.Complete retry instance for this incoming channel.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 MessagingFailureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingFailureConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearRetry
Clear existing value of retry.- Returns:
- updated builder instance
- See Also:
-
retry
Complete retry instance for this incoming channel. When present, it replaces the declared retry as a whole. Unspecified options within a configured retry use fault-tolerance defaults, not messaging or handler defaults. When absent, the declared retry is used, or the shared messaging default if no retry was declared.- Parameters:
retry- retry instance, if configured- Returns:
- updated builder instance
- See Also:
-
retry
Complete retry instance for this incoming channel. When present, it replaces the declared retry as a whole. Unspecified options within a configured retry use fault-tolerance defaults, not messaging or handler defaults. When absent, the declared retry is used, or the shared messaging default if no retry was declared.- Parameters:
retry- prototype of retry instance, if configured- Returns:
- updated builder instance
- See Also:
-
retry
Complete retry instance for this incoming channel. When present, it replaces the declared retry as a whole. Unspecified options within a configured retry use fault-tolerance defaults, not messaging or handler defaults. When absent, the declared retry is used, or the shared messaging default if no retry was declared.- Parameters:
consumer- consumer of builder of retry instance, if configured- Returns:
- updated builder instance
- See Also:
-
retry
Complete retry instance for this incoming channel. When present, it replaces the declared retry as a whole. Unspecified options within a configured retry use fault-tolerance defaults, not messaging or handler defaults. When absent, the declared retry is used, or the shared messaging default if no retry was declared.- Parameters:
supplier- supplier of retry instance, if configured- Returns:
- updated builder instance
- See Also:
-
clearOnExhausted
Clear existing value of onExhausted.- Returns:
- updated builder instance
- See Also:
-
onExhausted
Disposition used when retry attempts are exhausted.- Parameters:
onExhausted- exhaustion disposition override, if configured- Returns:
- updated builder instance
- See Also:
-
clearDeadLetter
Clear existing value of deadLetter.- Returns:
- updated builder instance
- See Also:
-
deadLetter
Dead-letter target override. Required by the effective policy when its disposition is DEAD_LETTER.- Parameters:
deadLetter- dead-letter target override, if configured- Returns:
- updated builder instance
- See Also:
-
deadLetter
Dead-letter target override. Required by the effective policy when its disposition is DEAD_LETTER.- Parameters:
consumer- consumer of builder of dead-letter target override, if configured- Returns:
- updated builder instance
- See Also:
-
deadLetter
Dead-letter target override. Required by the effective policy when its disposition is DEAD_LETTER.- Parameters:
supplier- supplier of dead-letter target override, if configured- Returns:
- updated builder instance
- See Also:
-
retry
Complete retry instance for this incoming channel. When present, it replaces the declared retry as a whole. Unspecified options within a configured retry use fault-tolerance defaults, not messaging or handler defaults. When absent, the declared retry is used, or the shared messaging default if no retry was declared.- Returns:
- retry instance, if configured
-
onExhausted
Disposition used when retry attempts are exhausted.- Returns:
- exhaustion disposition override, if configured
-
deadLetter
Dead-letter target override. Required by the effective policy when its disposition is DEAD_LETTER.- Returns:
- dead-letter target override, if configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
buildPrototype
protected final MessagingFailureConfig buildPrototype(MessagingFailureConfig.BuilderBase<?, ?> builder) Create a new prototype instance from a builder.- Parameters:
builder- builder used to create the prototype- Returns:
- new prototype instance
-
config
-