public final class RetryImpl.ContextImpl extends java.lang.Object implements Retry.Context
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Exception exception)
Handles a checked exception
|
void |
onRuntimeError(java.lang.RuntimeException runtimeException)
Handles a runtime exception
|
void |
onSuccess()
Records a successful call.
|
public void onSuccess()
Retry.ContextonSuccess in interface Retry.Contextpublic void onError(java.lang.Exception exception)
throws java.lang.Throwable
Retry.ContextonError in interface Retry.Contextexception - the exception to handlejava.lang.Throwable - the exceptionpublic void onRuntimeError(java.lang.RuntimeException runtimeException)
Retry.ContextonRuntimeError in interface Retry.ContextruntimeException - the exception to handle