Class Fallback<V>
java.lang.Object
io.smallrye.faulttolerance.core.fallback.Fallback<V>
- All Implemented Interfaces:
FaultToleranceStrategy<V>
-
Constructor Summary
ConstructorsConstructorDescriptionFallback(FaultToleranceStrategy<V> delegate, String description, FallbackFunction<V> fallback, ExceptionDecision exceptionDecision) -
Method Summary
-
Constructor Details
-
Fallback
public Fallback(FaultToleranceStrategy<V> delegate, String description, FallbackFunction<V> fallback, ExceptionDecision exceptionDecision)
-
-
Method Details
-
apply
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anFaultToleranceContext.- Specified by:
applyin interfaceFaultToleranceStrategy<V>- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable
-