public interface RetryPolicy
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RetryPolicy.RetryPolicyFactory |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowRetry()
Ask the policy if a retry is allowed.
|
void |
begin()
Operation is starting
|
RetryPolicy |
duplicate()
Duplicate this policy into a fresh instance
|
void |
failure(java.lang.Exception e)
Operation has failed
|
int |
getAttemptCount()
Return the number of attempts since begin was called
|
void |
success()
Operation has completed successfully
|
void begin()
void success()
void failure(java.lang.Exception e)
boolean allowRetry()
int getAttemptCount()
RetryPolicy duplicate()