| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy.DelayFunction<?,? extends Throwable> |
RetryPolicy.getDelayFn()
Returns the function that determines the next delay given a failed attempt with the given
Throwable. |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
RetryPolicy.withDelay(RetryPolicy.DelayFunction<?,? extends Throwable> delayFunction)
Sets the
delayFunction that computes the next delay before retrying. |
<F extends Throwable> |
RetryPolicy.withDelayOn(RetryPolicy.DelayFunction<Object,F> delayFunction,
Class<F> failure)
Sets the
delayFunction that computes the next delay before retrying. |
<R> RetryPolicy |
RetryPolicy.withDelayWhen(RetryPolicy.DelayFunction<R,? extends Throwable> delayFunction,
R result)
Sets the
delayFunction that computes the next delay before retrying. |
Copyright © 2018. All rights reserved.