public class CompletionStageFallback<V> extends Fallback<CompletionStage<V>>
Fallback.MetricsRecorder| Constructor and Description |
|---|
CompletionStageFallback(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
FallbackFunction<CompletionStage<V>> fallback,
SetOfThrowables applyOn,
SetOfThrowables skipOn,
Fallback.MetricsRecorder metricsRecorder) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<V> |
apply(InvocationContext<CompletionStage<V>> ctx)
Apply the fault tolerance strategy around the target
Callable. |
public CompletionStageFallback(FaultToleranceStrategy<CompletionStage<V>> delegate, String description, FallbackFunction<CompletionStage<V>> fallback, SetOfThrowables applyOn, SetOfThrowables skipOn, Fallback.MetricsRecorder metricsRecorder)
public CompletionStage<V> apply(InvocationContext<CompletionStage<V>> ctx)
FaultToleranceStrategyCallable.
The Callable is wrapped in an InvocationContext.apply in interface FaultToleranceStrategy<CompletionStage<V>>apply in class Fallback<CompletionStage<V>>ctx - the InvocationContext wrapping the Callable guarded by this fault tolerance strategyCallableCopyright © 2018–2020. All rights reserved.