|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.retry.RunOnce
public class RunOnce
Field Summary | |
---|---|
static RunOnce |
instance
|
Constructor Summary | |
---|---|
RunOnce()
|
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(Exception e)
Operation has failed |
static RunOnce |
get()
|
int |
getAttemptCount()
Return the number of attempts since begin was called |
void |
success()
Operation has completed successfully |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static RunOnce instance
Constructor Detail |
---|
public RunOnce()
Method Detail |
---|
public static RunOnce get()
public void begin()
RetryPolicy
begin
in interface RetryPolicy
public void success()
RetryPolicy
success
in interface RetryPolicy
public void failure(Exception e)
RetryPolicy
failure
in interface RetryPolicy
public boolean allowRetry()
RetryPolicy
allowRetry
in interface RetryPolicy
public int getAttemptCount()
RetryPolicy
getAttemptCount
in interface RetryPolicy
public RetryPolicy duplicate()
RetryPolicy
duplicate
in interface RetryPolicy
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |