| 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<R>
Common execution information.
|
class |
AsyncExecution<R>
Tracks asynchronous executions and allows retries to be scheduled according to a
RetryPolicy. |
class |
Execution<R>
Tracks executions and determines when an execution can be performed for a
RetryPolicy. |
| Modifier and Type | Method and Description |
|---|---|
ExecutionContext<R> |
ExecutionContext.copy() |
| Modifier and Type | Method and Description |
|---|---|
protected Duration |
DelayablePolicy.computeDelay(ExecutionContext context)
Returns a computed delay for the
result and context else null if no delay function is
configured or the computed delay is invalid. |
| Constructor and Description |
|---|
ExecutionAttemptedEvent(R result,
Throwable failure,
ExecutionContext<R> context) |
ExecutionCompletedEvent(R result,
Throwable failure,
ExecutionContext<R> context) |
ExecutionScheduledEvent(R result,
Throwable failure,
Duration delay,
ExecutionContext<R> context) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
DelayFunction.computeDelay(R result,
F failure,
ExecutionContext context)
Returns the amount of delay before the next
Policy execution attempt based on the result
or failure of the last attempt and the execution context (executions so far). |
T |
ContextualSupplier.get(ExecutionContext<R> context) |
void |
ContextualRunnable.run(ExecutionContext<Void> context) |
Copyright © 2021. All rights reserved.