public class IndefiniteRetry extends java.lang.Object implements RetryPolicy
RetryPolicy.RetryPolicyFactory| Constructor and Description |
|---|
IndefiniteRetry() |
| 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
|
public void begin()
RetryPolicybegin in interface RetryPolicypublic void success()
RetryPolicysuccess in interface RetryPolicypublic void failure(java.lang.Exception e)
RetryPolicyfailure in interface RetryPolicypublic boolean allowRetry()
RetryPolicyallowRetry in interface RetryPolicypublic int getAttemptCount()
RetryPolicygetAttemptCount in interface RetryPolicypublic RetryPolicy duplicate()
RetryPolicyduplicate in interface RetryPolicy