|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RetryPolicy
Interface for any retry logic
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 |
int |
getAttemptCount()
Return the number of attempts since begin was called |
void |
success()
Operation has completed successfully |
Method Detail |
---|
void begin()
void success()
void failure(Exception e)
boolean allowRetry()
int getAttemptCount()
RetryPolicy duplicate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |