| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| net.jodah.failsafe.event |
Event listener types.
|
| net.jodah.failsafe.function |
Functional interface types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExecution
Common execution information.
|
class |
AsyncExecution
Tracks asynchronous executions and allows retries to be scheduled according to a
RetryPolicy. |
class |
Execution
Tracks executions and determines when an execution can be performed for a
RetryPolicy. |
| Modifier and Type | Method and Description |
|---|---|
ExecutionContext |
ExecutionContext.copy() |
| Modifier and Type | Method and Description |
|---|---|
R |
Fallback.apply(R result,
Throwable failure,
ExecutionContext context) |
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).
|
| Constructor and Description |
|---|
ExecutionAttemptedEvent(R result,
Throwable failure,
ExecutionContext context) |
ExecutionCompletedEvent(R result,
Throwable failure,
ExecutionContext context) |
| Modifier and Type | Method and Description |
|---|---|
T |
ContextualSupplier.get(ExecutionContext context) |
void |
ContextualRunnable.run(ExecutionContext context) |
Copyright © 2019. All rights reserved.