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