| Package | Description |
|---|---|
| net.jodah.recurrent |
| Modifier and Type | Method and Description |
|---|---|
AsyncListeners<T> |
AsyncListeners.whenFailedAttemptAsync(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously after a failed invocation attempt. |
AsyncListeners<T> |
AsyncListeners.whenFailedAttemptAsync(ContextualResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously 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 after a failed invocation attempt. |
AsyncListeners<T> |
AsyncListeners.whenRetryAsync(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
AsyncListeners<T> |
AsyncListeners.whenRetryAsync(ContextualResultListener<? 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. |
AsyncListeners<T> |
AsyncListeners.whenRetryAsync(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. |
AsyncListeners<T> |
AsyncListeners.whenRetryAsync(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. |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
Recurrent.future(Callable<CompletableFuture<T>> callable,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the executor according to the retryPolicy. |
static <T> CompletableFuture<T> |
Recurrent.future(Callable<CompletableFuture<T>> callable,
RetryPolicy retryPolicy,
Scheduler scheduler,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the scheduler according to the retryPolicy. |
static <T> CompletableFuture<T> |
Recurrent.future(ContextualCallable<CompletableFuture<T>> callable,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the executor according to the retryPolicy. |
static <T> CompletableFuture<T> |
Recurrent.future(ContextualCallable<CompletableFuture<T>> callable,
RetryPolicy retryPolicy,
Scheduler scheduler,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the scheduler according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.get(Callable<T> callable,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the executor according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.get(Callable<T> callable,
RetryPolicy retryPolicy,
Scheduler scheduler,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the scheduler according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.get(ContextualCallable<T> callable,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the executor according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.get(ContextualCallable<T> callable,
RetryPolicy retryPolicy,
Scheduler scheduler,
AsyncListeners<T> listeners)
Invokes the
callable, scheduling retries with the scheduler according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.run(CheckedRunnable runnable,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
AsyncListeners<T> listeners)
Invokes the
runnable, scheduling retries with the executor according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.run(CheckedRunnable runnable,
RetryPolicy retryPolicy,
Scheduler scheduler,
AsyncListeners<T> listeners)
Invokes the
runnable, scheduling retries with the scheduler according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.run(ContextualRunnable runnable,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
AsyncListeners<T> listeners)
Invokes the
runnable, scheduling retries with the executor according to the retryPolicy. |
static <T> RecurrentFuture<T> |
Recurrent.run(ContextualRunnable runnable,
RetryPolicy retryPolicy,
Scheduler scheduler,
AsyncListeners<T> listeners)
Invokes the
runnable, scheduling retries with the scheduler according to the retryPolicy. |
Copyright © 2016. All Rights Reserved.