| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
F |
FailsafeConfig.onAbort(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called when an execution is aborted. |
F |
AsyncFailsafeConfig.onAbortAsync(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is aborted according to the retry policy. |
F |
FailsafeConfig.onAbortAsync(CheckedConsumer<? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution is aborted. |
F |
FailsafeConfig.onFailedAttempt(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called when an execution attempt fails. |
F |
AsyncFailsafeConfig.onFailedAttemptAsync(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failed execution attempt. |
F |
FailsafeConfig.onFailedAttemptAsync(CheckedConsumer<? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution attempt fails. |
F |
FailsafeConfig.onFailure(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called when an execution fails and cannot be retried. |
F |
AsyncFailsafeConfig.onFailureAsync(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failure occurs that cannot be retried. |
F |
FailsafeConfig.onFailureAsync(CheckedConsumer<? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution fails and
cannot be retried. |
F |
FailsafeConfig.onRetriesExceeded(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called when an execution fails and the max retry attempts or max duration are
exceeded. |
F |
AsyncFailsafeConfig.onRetriesExceededAsync(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution fails and the max retry attempts or duration are exceeded. |
F |
FailsafeConfig.onRetriesExceededAsync(CheckedConsumer<? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution fails and the
max retry attempts or
max duration are exceeded. |
F |
FailsafeConfig.onRetry(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called before an execution is retried. |
F |
AsyncFailsafeConfig.onRetryAsync(CheckedConsumer<? extends Throwable> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler before a
retry is attempted. |
F |
FailsafeConfig.onRetryAsync(CheckedConsumer<? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor before an execution is retried. |
F |
FailsafeConfig.onSuccess(CheckedConsumer<? extends R> listener)
Registers the
listener to be called when an execution is successful. |
F |
AsyncFailsafeConfig.onSuccessAsync(CheckedConsumer<? extends R> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
successful execution. |
F |
FailsafeConfig.onSuccessAsync(CheckedConsumer<? extends R> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution is successful. |
F |
FailsafeConfig.withFallback(CheckedConsumer<? extends Throwable> fallback)
Configures the
fallback action to be executed if execution fails. |
Copyright © 2017. All Rights Reserved.