Class CompletionStageRetry<V>
java.lang.Object
io.smallrye.faulttolerance.core.retry.Retry<CompletionStage<V>>
io.smallrye.faulttolerance.core.retry.CompletionStageRetry<V>
- All Implemented Interfaces:
FaultToleranceStrategy<CompletionStage<V>>
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionStageRetry(FaultToleranceStrategy<CompletionStage<V>> delegate, String description, ResultDecision resultDecision, ExceptionDecision exceptionDecision, long maxRetries, long maxTotalDurationInMillis, Supplier<AsyncDelay> delayBetweenRetries, Stopwatch stopwatch, Consumer<FailureContext> beforeRetry) -
Method Summary
Modifier and TypeMethodDescriptionapply(InvocationContext<CompletionStage<V>> ctx) Apply the fault tolerance strategy around the targetCallable.
-
Constructor Details
-
CompletionStageRetry
public CompletionStageRetry(FaultToleranceStrategy<CompletionStage<V>> delegate, String description, ResultDecision resultDecision, ExceptionDecision exceptionDecision, long maxRetries, long maxTotalDurationInMillis, Supplier<AsyncDelay> delayBetweenRetries, Stopwatch stopwatch, Consumer<FailureContext> beforeRetry)
-
-
Method Details
-
apply
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anInvocationContext.- Specified by:
applyin interfaceFaultToleranceStrategy<V>- Overrides:
applyin classRetry<CompletionStage<V>>- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable
-