Class FallbackConfig.Builder<T>
java.lang.Object
io.helidon.faulttolerance.FallbackConfig.BuilderBase<T, FallbackConfig.Builder<T>, FallbackConfig<T>>
io.helidon.faulttolerance.FallbackConfig.Builder<T>
- Type Parameters:
T- return type of the fallback method
- All Implemented Interfaces:
Prototype.Builder<FallbackConfig.Builder<T>, FallbackConfig<T>>, Builder<FallbackConfig.Builder<T>, FallbackConfig<T>>, Supplier<FallbackConfig<T>>
- Enclosing interface:
FallbackConfig<T>
public static class FallbackConfig.Builder<T>
extends FallbackConfig.BuilderBase<T, FallbackConfig.Builder<T>, FallbackConfig<T>>
implements Builder<FallbackConfig.Builder<T>, FallbackConfig<T>>
Fluent API builder for
FallbackConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class FallbackConfig.BuilderBase
FallbackConfig.BuilderBase.FallbackConfigImpl<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 FallbackConfig.BuilderBase
addApplyOn, addApplyOn, addSkipOn, addSkipOn, applyOn, applyOn, clearApplyOn, clearSkipOn, fallback, fallback, from, from, preBuildPrototype, skipOn, skipOn, toString, validatePrototypeModifier 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.Clear all applyOn.Clear all skipOn.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 voidHandles 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 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 FallbackConfig<T> get()default FallbackConfig.Builder<T> identity()Instance of this builder as the correct type.default FallbackConfig.Builder<T> update(Consumer<FallbackConfig.Builder<T>> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault FallbackConfig.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<FallbackConfig.Builder<T>, FallbackConfig<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<FallbackConfig.Builder<T>, FallbackConfig<T>>- Returns:
- instance of the built type
-