Class CompletionStageFallback<V>
- java.lang.Object
-
- io.smallrye.faulttolerance.core.fallback.Fallback<CompletionStage<V>>
-
- io.smallrye.faulttolerance.core.fallback.CompletionStageFallback<V>
-
- All Implemented Interfaces:
FaultToleranceStrategy<CompletionStage<V>>
public class CompletionStageFallback<V> extends Fallback<CompletionStage<V>>
-
-
Constructor Summary
Constructors Constructor Description CompletionStageFallback(FaultToleranceStrategy<CompletionStage<V>> delegate, String description, FallbackFunction<CompletionStage<V>> fallback, SetOfThrowables applyOn, SetOfThrowables skipOn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<V>apply(InvocationContext<CompletionStage<V>> ctx)Apply the fault tolerance strategy around the targetCallable.
-
-
-
Constructor Detail
-
CompletionStageFallback
public CompletionStageFallback(FaultToleranceStrategy<CompletionStage<V>> delegate, String description, FallbackFunction<CompletionStage<V>> fallback, SetOfThrowables applyOn, SetOfThrowables skipOn)
-
-
Method Detail
-
apply
public CompletionStage<V> apply(InvocationContext<CompletionStage<V>> ctx)
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anInvocationContext.- Specified by:
applyin interfaceFaultToleranceStrategy<V>- Overrides:
applyin classFallback<CompletionStage<V>>- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable
-
-