Class Retry<V>
java.lang.Object
io.smallrye.faulttolerance.core.retry.Retry<V>
- All Implemented Interfaces:
FaultToleranceStrategy<V>
-
Constructor Summary
ConstructorsConstructorDescriptionRetry(FaultToleranceStrategy<V> delegate, String description, ResultDecision resultDecision, ExceptionDecision exceptionDecision, long maxRetries, long maxTotalDurationInMillis, Supplier<SyncDelay> syncDelayBetweenRetries, Supplier<AsyncDelay> asyncDelayBetweenRetries, Stopwatch stopwatch, Consumer<FailureContext> beforeRetry) -
Method Summary
-
Constructor Details
-
Retry
public Retry(FaultToleranceStrategy<V> delegate, String description, ResultDecision resultDecision, ExceptionDecision exceptionDecision, long maxRetries, long maxTotalDurationInMillis, Supplier<SyncDelay> syncDelayBetweenRetries, Supplier<AsyncDelay> asyncDelayBetweenRetries, Stopwatch stopwatch, Consumer<FailureContext> beforeRetry)
-
-
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
-