|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.retry.SleepingRetryPolicy
public abstract class SleepingRetryPolicy
Base sleeping retry policy with optional count limit. The sleep time is delegated to the subclass.
| Constructor Summary | |
|---|---|
SleepingRetryPolicy(int max)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.netflix.astyanax.retry.RetryPolicy |
|---|
duplicate |
| Constructor Detail |
|---|
public SleepingRetryPolicy(int max)
| Method Detail |
|---|
public boolean allowRetry()
RetryPolicy
allowRetry in interface RetryPolicypublic abstract long getSleepTimeMs()
public void begin()
RetryPolicy
begin in interface RetryPolicypublic void success()
RetryPolicy
success in interface RetryPolicypublic void failure(java.lang.Exception e)
RetryPolicy
failure in interface RetryPolicypublic int getAttemptCount()
RetryPolicy
getAttemptCount in interface RetryPolicy@Deprecated public int getMax()
public int getMaxAttemptCount()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||