| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| net.jodah.failsafe.util |
Utilities.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
RetryPolicy.DelayFunction.computeDelay(R result,
F failure,
ExecutionContext context)
Returns the amount of delay before the next retry based on the result or failure of the last attempt and the
execution context (executions so far).
|
Duration |
RetryPolicy.getDelay()
Returns the delay between retries.
|
Duration |
CircuitBreaker.getDelay()
Returns the delay before allowing another execution on the circuit.
|
Duration |
RetryPolicy.getDelayMax()
Returns the max delay between retries.
|
Duration |
RetryPolicy.getDelayMin()
Returns the min delay between retries.
|
Duration |
ExecutionContext.getElapsedTime()
Returns the elapsed time since initial execution began.
|
Duration |
RetryPolicy.getJitter()
Returns the jitter, else
null if none has been configured. |
Duration |
RetryPolicy.getMaxDelay()
Returns the max delay between backoff retries.
|
Duration |
RetryPolicy.getMaxDuration()
Returns the max duration to perform retries for.
|
Duration |
ExecutionContext.getStartTime()
Returns the time that the initial execution started.
|
Duration |
CircuitBreaker.getTimeout()
Returns timeout for executions else
null if none has been configured. |
| Modifier and Type | Field and Description |
|---|---|
static Duration |
Duration.NONE |
Copyright © 2018. All rights reserved.