public interface AsyncRecurrent
| Modifier and Type | Method and Description |
|---|---|
<T> CompletableFuture<T> |
future(Callable<CompletableFuture<T>> callable)
Invokes the
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded. |
<T> CompletableFuture<T> |
future(ContextualCallable<CompletableFuture<T>> callable)
Invokes the
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded. |
<T> CompletableFuture<T> |
futureAsync(AsyncCallable<CompletableFuture<T>> callable)
Invokes the
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded. |
<T> RecurrentFuture<T> |
get(Callable<T> callable)
Invokes the
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded. |
<T> RecurrentFuture<T> |
get(ContextualCallable<T> callable)
Invokes the
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded. |
<T> RecurrentFuture<T> |
getAsync(AsyncCallable<T> callable)
Invokes the
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded. |
RecurrentFuture<Void> |
run(CheckedRunnable runnable)
Invokes the
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded. |
RecurrentFuture<Void> |
run(ContextualRunnable runnable)
Invokes the
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded. |
RecurrentFuture<Void> |
runAsync(AsyncRunnable runnable)
Invokes the
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded. |
<T extends Listeners<?>> |
with(T listeners)
Configures the
listeners to be called as invocation events occur. |
<T> CompletableFuture<T> future(Callable<CompletableFuture<T>> callable)
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded.NullPointerException - if the callable is null<T> CompletableFuture<T> future(ContextualCallable<CompletableFuture<T>> callable)
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded.NullPointerException - if the callable is null<T> CompletableFuture<T> futureAsync(AsyncCallable<CompletableFuture<T>> callable)
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded. This method is intended for integration with asynchronous code. Retries must be
manually scheduled via one of the AsyncInvocation.retry methods.NullPointerException - if the callable is null<T> RecurrentFuture<T> get(Callable<T> callable)
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded.NullPointerException - if the callable is null<T> RecurrentFuture<T> get(ContextualCallable<T> callable)
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded.NullPointerException - if the callable is null<T> RecurrentFuture<T> getAsync(AsyncCallable<T> callable)
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded. This method is intended for integration with asynchronous code. Retries must be
manually scheduled via one of the AsyncInvocation.retry methods.NullPointerException - if the callable is nullRecurrentFuture<Void> run(CheckedRunnable runnable)
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded.NullPointerException - if the runnable is nullRecurrentFuture<Void> run(ContextualRunnable runnable)
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded.NullPointerException - if the runnable is nullRecurrentFuture<Void> runAsync(AsyncRunnable runnable)
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded. This method is intended for integration with asynchronous code. Retries must be manually scheduled via
one of the AsyncInvocation.retry methods.NullPointerException - if the runnable is null<T extends Listeners<?>> AsyncRecurrent with(T listeners)
listeners to be called as invocation events occur.Copyright © 2016. All Rights Reserved.