T - result typepublic class AsyncListeners<T> extends Listeners<T>
Scheduler or ScheduledExecutorService
associated with the Recurrent call. To handle completion and failure events, see RecurrentFuture.| Constructor and Description |
|---|
AsyncListeners() |
| Modifier and Type | Method and Description |
|---|---|
AsyncListeners<T> |
whenFailedAttemptAsync(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously after a failed invocation attempt. |
AsyncListeners<T> |
whenFailedAttemptAsync(ContextualResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor after a failed invocation
attempt. |
AsyncListeners<T> |
whenFailedAttemptAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously after a failed invocation attempt. |
AsyncListeners<T> |
whenFailedAttemptAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor after a failed invocation
attempt. |
AsyncListeners<T> |
whenRetryAsync(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously before a retry is attempted. |
AsyncListeners<T> |
whenRetryAsync(ContextualResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor before a retry is attempted. |
AsyncListeners<T> |
whenRetryAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously before a retry is attempted. |
AsyncListeners<T> |
whenRetryAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor before a retry is attempted. |
onComplete, onComplete, onFailedAttempt, onFailedAttempt, onFailure, onFailure, onRetry, onRetry, onSuccess, onSuccess, whenComplete, whenComplete, whenFailedAttempt, whenFailedAttempt, whenFailure, whenFailure, whenRetry, whenRetry, whenSuccess, whenSuccesspublic AsyncListeners<T> whenFailedAttemptAsync(ContextualResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously after a failed invocation attempt.public AsyncListeners<T> whenFailedAttemptAsync(ContextualResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously on the executor after a failed invocation
attempt.public AsyncListeners<T> whenFailedAttemptAsync(ResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously after a failed invocation attempt.public AsyncListeners<T> whenFailedAttemptAsync(ResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously on the executor after a failed invocation
attempt.public AsyncListeners<T> whenRetryAsync(ContextualResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously before a retry is attempted.public AsyncListeners<T> whenRetryAsync(ContextualResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously on the executor before a retry is attempted.public AsyncListeners<T> whenRetryAsync(ResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously before a retry is attempted.public AsyncListeners<T> whenRetryAsync(ResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously on the executor before a retry is attempted.Copyright © 2016. All Rights Reserved.