Interface FallbackConfig<T>
- Type Parameters:
T- return type of the fallback method
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
FallbackConfig.BuilderBase.FallbackConfigImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forFallbackConfig.static classFallbackConfig.BuilderBase<T, BUILDER extends FallbackConfig.BuilderBase<T, BUILDER, PROTOTYPE>, PROTOTYPE extends FallbackConfig<T>>Fluent API builder base forFallbackConfig. -
Method Summary
Modifier and TypeMethodDescriptionapplyOn()These throwables will be considered retriable.static <T> FallbackConfig.Builder<T> builder()Create a new fluent API builder to customize configuration.static <T> FallbackConfig.Builder<T> builder(FallbackConfig<T> instance) Create a new fluent API builder from an existing instance.fallback()A fallback function.skipOn()These throwables will not be considered retriable, all other will.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Type Parameters:
T- return type of the fallback method- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Type Parameters:
T- return type of the fallback method- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
fallback
-
skipOn
-
applyOn
-