R - result typeF - failsafe type - SyncFailsafe or AsyncFailsafepublic class AsyncFailsafeConfig<R,F> extends FailsafeConfig<R,F>
Async execution event listeners are called asynchronously on the Scheduler or
ScheduledExecutorService associated with the Failsafe call.
| Modifier and Type | Method and Description |
|---|---|
F |
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 |
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 |
onAbortAsync(ContextualResultListener<? 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 |
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 |
onCompleteAsync(ContextualResultListener<? 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 |
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 |
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 |
onFailedAttemptAsync(ContextualResultListener<? 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 |
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 |
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 |
onFailureAsync(ContextualResultListener<? 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 |
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 |
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 |
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 |
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 |
onRetryAsync(ContextualResultListener<? 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 |
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 |
onSuccessAsync(CheckedConsumer<? extends R> listener)
Registers the
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
successful execution. |
onAbort, onAbort, onAbort, onAbortAsync, onAbortAsync, onAbortAsync, onComplete, onComplete, onCompleteAsync, onCompleteAsync, onFailedAttempt, onFailedAttempt, onFailedAttempt, onFailedAttemptAsync, onFailedAttemptAsync, onFailedAttemptAsync, onFailure, onFailure, onFailure, onFailureAsync, onFailureAsync, onFailureAsync, onRetriesExceeded, onRetriesExceeded, onRetriesExceededAsync, onRetriesExceededAsync, onRetry, onRetry, onRetry, onRetryAsync, onRetryAsync, onRetryAsync, onSuccess, onSuccess, onSuccessAsync, onSuccessAsync, with, with, with, withFallback, withFallback, withFallback, withFallback, withFallback, withFallback, withFallbackpublic F onAbortAsync(ContextualResultListener<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is aborted according to the retry policy.public F onAbortAsync(CheckedConsumer<? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is aborted according to the retry policy.public F onAbortAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is aborted according to the retry policy.public F onCompleteAsync(ContextualResultListener<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is completed.public F onCompleteAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler when an
execution is completed.public F onFailedAttemptAsync(ContextualResultListener<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failed execution attempt.public F onFailedAttemptAsync(CheckedConsumer<? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failed execution attempt.public F onFailedAttemptAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failed execution attempt.public F onFailureAsync(ContextualResultListener<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failure occurs that cannot be retried.public F onFailureAsync(CheckedConsumer<? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failure occurs that cannot be retried.public F onFailureAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
failure occurs that cannot be retried.public F onRetriesExceededAsync(CheckedConsumer<? extends Throwable> listener)
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.public F onRetriesExceededAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
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.public F onRetryAsync(ContextualResultListener<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler before a
retry is attempted.public F onRetryAsync(CheckedConsumer<? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler before a
retry is attempted.public F onRetryAsync(CheckedBiConsumer<? extends R,? extends Throwable> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler before a
retry is attempted.public F onSuccessAsync(CheckedBiConsumer<? extends R,ExecutionContext> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
successful execution.public F onSuccessAsync(CheckedConsumer<? extends R> listener)
listener to be called asynchronously on Failsafe's configured executor or Scheduler after a
successful execution.Copyright © 2018. All rights reserved.