public static interface Retry.AsyncContext<T>
| 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 void onSuccess()
void onComplete()
RetryOnSuccessEvent. When the retry reach the max retries limit, it will generate
RetryOnErrorEvent with last exception or MaxRetriesExceeded if no other
exception is thrown.long onError(java.lang.Throwable throwable)
throwable - the exception to handlelong onResult(T result)
result - the result to validate