T - The type that is returned by the Callable (eg: Boolean, Void, Object, etc)public class AsyncCallExecutor<T> extends Object implements RetryExecutor<T,CompletableFuture<Status<T>>>
| Constructor and Description |
|---|
AsyncCallExecutor(RetryConfig config) |
AsyncCallExecutor(RetryConfig config,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
AsyncCallExecutor<T> |
afterFailedTry(RetryListener listener) |
AsyncCallExecutor<T> |
beforeNextTry(RetryListener listener) |
CompletableFuture<Status<T>> |
execute(Callable<T> callable) |
CompletableFuture<Status<T>> |
execute(Callable<T> callable,
String callName) |
ExecutorService |
getThreadExecutorService() |
AsyncCallExecutor<T> |
onCompletion(RetryListener listener) |
AsyncCallExecutor<T> |
onFailure(RetryListener listener) |
AsyncCallExecutor<T> |
onSuccess(RetryListener listener) |
void |
setConfig(RetryConfig config) |
public AsyncCallExecutor(RetryConfig config)
public AsyncCallExecutor(RetryConfig config, ExecutorService executorService)
public CompletableFuture<Status<T>> execute(Callable<T> callable)
execute in interface RetryExecutor<T,CompletableFuture<Status<T>>>public CompletableFuture<Status<T>> execute(Callable<T> callable, String callName)
execute in interface RetryExecutor<T,CompletableFuture<Status<T>>>public AsyncCallExecutor<T> afterFailedTry(RetryListener listener)
public AsyncCallExecutor<T> beforeNextTry(RetryListener listener)
public AsyncCallExecutor<T> onCompletion(RetryListener listener)
public AsyncCallExecutor<T> onSuccess(RetryListener listener)
public AsyncCallExecutor<T> onFailure(RetryListener listener)
public void setConfig(RetryConfig config)
setConfig in interface RetryExecutor<T,CompletableFuture<Status<T>>>public ExecutorService getThreadExecutorService()
Copyright © 2018. All rights reserved.