|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.retry.IndefiniteRetry
public class IndefiniteRetry
| Constructor Summary | |
|---|---|
IndefiniteRetry()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndefiniteRetry()
| Method Detail |
|---|
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 boolean allowRetry()
RetryPolicy
allowRetry in interface RetryPolicypublic int getAttemptCount()
RetryPolicy
getAttemptCount in interface RetryPolicypublic RetryPolicy duplicate()
RetryPolicy
duplicate in interface RetryPolicy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||