Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
Class FallbackConfig.BuilderBase<T,BUILDER extends FallbackConfig.BuilderBase<T,BUILDER,PROTOTYPE>,PROTOTYPE extends FallbackConfig<T>>
java.lang.Object
io.helidon.faulttolerance.FallbackConfig.BuilderBase<T,BUILDER,PROTOTYPE>
- Type Parameters:
T
-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>
- Direct Known Subclasses:
FallbackConfig.Builder
- Enclosing interface:
FallbackConfig<T>
public abstract static class FallbackConfig.BuilderBase<T,BUILDER extends FallbackConfig.BuilderBase<T,BUILDER,PROTOTYPE>,PROTOTYPE extends FallbackConfig<T>>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
FallbackConfig
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddApplyOn
(Class<? extends Throwable> applyOn) These throwables will be considered retriable.addApplyOn
(Set<Class<? extends Throwable>> applyOn) These throwables will be considered retriable.These throwables will not be considered retriable, all other will.These throwables will not be considered retriable, all other will.applyOn()
These throwables will be considered retriable.These throwables will be considered retriable.fallback()
A fallback function.A fallback function.from
(FallbackConfig.BuilderBase<T, ?, ?> builder) Update this builder from an existing prototype builder instance.from
(FallbackConfig<T> prototype) Update this builder from an existing prototype instance.protected void
Handles providers and decorators.skipOn()
These throwables will not be considered retriable, all other will.These throwables will not be considered retriable, all other will.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.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
-
fallback
A fallback function.- Parameters:
fallback
- fallback function to obtain alternative result- Returns:
- updated builder instance
- See Also:
-
skipOn
These throwables will not be considered retriable, all other will.- Parameters:
skipOn
- throwable classes to skip retries- Returns:
- updated builder instance
- See Also:
-
addSkipOn
These throwables will not be considered retriable, all other will.- Parameters:
skipOn
- throwable classes to skip retries- Returns:
- updated builder instance
- See Also:
-
addSkipOn
These throwables will not be considered retriable, all other will.- Parameters:
skipOn
- throwable classes to skip retries- Returns:
- updated builder instance
- See Also:
-
applyOn
These throwables will be considered retriable.- Parameters:
applyOn
- throwable classes to trigger retries- Returns:
- updated builder instance
- See Also:
-
addApplyOn
These throwables will be considered retriable.- Parameters:
applyOn
- throwable classes to trigger retries- Returns:
- updated builder instance
- See Also:
-
addApplyOn
These throwables will be considered retriable.- Parameters:
applyOn
- throwable classes to trigger retries- Returns:
- updated builder instance
- See Also:
-
fallback
A fallback function.- Returns:
- the fallback
-
skipOn
These throwables will not be considered retriable, all other will.- Returns:
- the skip on
- See Also:
-
applyOn
These throwables will be considered retriable.- Returns:
- the apply on
- See Also:
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-