| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
F |
FailsafeConfig.onAbort(CheckedBiConsumer<? extends R,? extends Throwable> listener)
Registers the
listener to be called when an execution is aborted. |
F |
AsyncFailsafeConfig.onAbortAsync(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution is aborted. |
F |
FailsafeConfig.onComplete(CheckedBiConsumer<? extends R,? extends Throwable> listener)
Registers the
listener to be called when an execution is completed. |
F |
AsyncFailsafeConfig.onCompleteAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is completed. |
F |
FailsafeConfig.onCompleteAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution is completed. |
F |
FailsafeConfig.onFailedAttempt(CheckedBiConsumer<? extends R,? extends Throwable> listener)
Registers the
listener to be called when an execution attempt fails. |
F |
AsyncFailsafeConfig.onFailedAttemptAsync(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution attempt fails. |
F |
FailsafeConfig.onFailure(CheckedBiConsumer<? extends R,? extends Throwable> listener)
Registers the
listener to be called when an execution fails and cannot be retried. |
F |
AsyncFailsafeConfig.onFailureAsync(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? extends Throwable> listener)
Registers the
listener to be called before an execution is retried. |
F |
AsyncFailsafeConfig.onRetryAsync(CheckedBiConsumer<? extends R,? 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(CheckedBiConsumer<? extends R,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor before an execution is retried. |
F |
FailsafeConfig.onSuccess(CheckedBiConsumer<? extends R,ExecutionContext> listener)
Registers the
listener to be called when an execution is successful. |
F |
AsyncFailsafeConfig.onSuccessAsync(CheckedBiConsumer<? extends R,ExecutionContext> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
successful execution. |
F |
FailsafeConfig.onSuccessAsync(CheckedBiConsumer<? extends R,ExecutionContext> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor when an execution is successful. |
F |
FailsafeConfig.withFallback(CheckedBiConsumer<? extends R,? extends Throwable> fallback)
Configures the
fallback action to be executed if execution fails. |
Copyright © 2017. All Rights Reserved.