- Type Parameters:
T- type of the values returned
- All Superinterfaces:
FtHandlerTyped<T>
Fallback allows the user to execute an alternative function in case the provided supplier fails.
-
Nested Class Summary
Nested Classes -
Method Summary
Static MethodsMethods inherited from interface io.helidon.nima.faulttolerance.FtHandlerTyped
invoke
-
Method Details
-
builder
A builder to customizeFallback.- Type Parameters:
T- type of the values returned by the failing method- Returns:
- a new builder
-
create
Create a fallback for a callable.- Type Parameters:
T- type of the result- Parameters:
fallback- fallback supplier to obtain the alternative result- Returns:
- a new fallback
-