| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy<R> |
RetryPolicy.onAbort(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution is aborted. |
FailsafeExecutor<R> |
FailsafeExecutor.onComplete(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution is complete for all of the configured policies are
exceeded. |
FailsafeExecutor<R> |
FailsafeExecutor.onFailure(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution fails. |
S |
PolicyListeners.onFailure(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when a Policy fails to handle an execution. |
RetryPolicy<R> |
RetryPolicy.onRetriesExceeded(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution fails and the max retry attempts or max duration are exceeded. |
FailsafeExecutor<R> |
FailsafeExecutor.onSuccess(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution is successful. |
S |
PolicyListeners.onSuccess(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when a Policy succeeds in handling an execution. |
Copyright © 2021. All rights reserved.