public final class RetryImpl.AsyncContextImpl extends java.lang.Object implements Retry.AsyncContext<T>
| Constructor and Description |
|---|
AsyncContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Records a successful call or retryable call with the needed generated retry events.
|
long |
onError(java.lang.Throwable throwable)
Records an failed call.
|
long |
onResult(T result)
check the result call.
|
void |
onSuccess()
Deprecated.
since 1.2.0
|
@Deprecated public void onSuccess()
Retry.AsyncContextonSuccess in interface Retry.AsyncContext<T>public void onComplete()
Retry.AsyncContextRetryOnSuccessEvent. When the retry reach the max retries limit, it will generate
RetryOnErrorEvent with last exception or MaxRetriesExceeded if no other
exception is thrown.onComplete in interface Retry.AsyncContext<T>public long onError(java.lang.Throwable throwable)
Retry.AsyncContextonError in interface Retry.AsyncContext<T>throwable - the exception to handlepublic long onResult(T result)
Retry.AsyncContextonResult in interface Retry.AsyncContext<T>result - the result to validate