public abstract class SleepingRetryPolicy extends java.lang.Object implements RetryPolicy
RetryPolicy.RetryPolicyFactory| Constructor and Description |
|---|
SleepingRetryPolicy(int max) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowRetry()
Ask the policy if a retry is allowed.
|
void |
begin()
Operation is starting
|
void |
failure(java.lang.Exception e)
Operation has failed
|
int |
getAttemptCount()
Return the number of attempts since begin was called
|
int |
getMax()
Deprecated.
|
int |
getMaxAttemptCount() |
abstract long |
getSleepTimeMs() |
void |
success()
Operation has completed successfully
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitduplicatepublic boolean allowRetry()
RetryPolicyallowRetry in interface RetryPolicypublic abstract long getSleepTimeMs()
public void begin()
RetryPolicybegin in interface RetryPolicypublic void success()
RetryPolicysuccess in interface RetryPolicypublic void failure(java.lang.Exception e)
RetryPolicyfailure in interface RetryPolicypublic int getAttemptCount()
RetryPolicygetAttemptCount in interface RetryPolicy@Deprecated public int getMax()
public int getMaxAttemptCount()
public java.lang.String toString()
toString in class java.lang.Object