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>>>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Status<T>> |
execute(Callable<T> callable) |
CompletableFuture<Status<T>> |
execute(Callable<T> callable,
String callName) |
RetryListener<T> |
getAfterFailedTryListener() |
RetryListener<T> |
getBeforeNextTryListener() |
RetryConfig |
getConfig() |
ExecutorService |
getExecutorService() |
RetryListener<T> |
getOnCompletionListener() |
RetryListener<T> |
getOnFailureListener() |
RetryListener<T> |
getOnSuccessListener() |
ExecutorService |
getThreadExecutorService()
Deprecated.
|
void |
setExecutorService(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 RetryConfig getConfig()
public RetryListener<T> getAfterFailedTryListener()
public RetryListener<T> getBeforeNextTryListener()
public RetryListener<T> getOnFailureListener()
public RetryListener<T> getOnSuccessListener()
public RetryListener<T> getOnCompletionListener()
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
@Deprecated public ExecutorService getThreadExecutorService()
Copyright © 2018. All rights reserved.