| Package | Description |
|---|---|
| net.jodah.recurrent |
| Modifier and Type | Method and Description |
|---|---|
RecurrentFuture<T> |
RecurrentFuture.whenComplete(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when an invocation is completed. |
<L extends Listeners<T>> |
Listeners.whenComplete(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when an invocation is completed. |
RecurrentFuture<T> |
RecurrentFuture.whenCompleteAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when an invocation is completed. |
RecurrentFuture<T> |
RecurrentFuture.whenCompleteAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously when an invocation is completed. |
<L extends Listeners<T>> |
Listeners.whenFailedAttempt(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called after a failed invocation attempt. |
AsyncListeners<T> |
AsyncListeners.whenFailedAttemptAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously after a failed invocation attempt. |
AsyncListeners<T> |
AsyncListeners.whenFailedAttemptAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor after a failed invocation
attempt. |
RecurrentFuture<T> |
RecurrentFuture.whenFailure(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when the retry policy is exceeded and the result is a failure. |
<L extends Listeners<T>> |
Listeners.whenFailure(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when the retry policy is exceeded and the result is a failure. |
RecurrentFuture<T> |
RecurrentFuture.whenFailureAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
RecurrentFuture<T> |
RecurrentFuture.whenFailureAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
<L extends Listeners<T>> |
Listeners.whenRetry(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called before a retry is attempted. |
AsyncListeners<T> |
AsyncListeners.whenRetryAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously before a retry is attempted. |
AsyncListeners<T> |
AsyncListeners.whenRetryAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously on the executor before a retry is attempted. |
Copyright © 2016. All Rights Reserved.