|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@CRestComponent public interface RetryHandler
RetryHandlers are responsible for deciding whether a request that have failed should be re-tried to not.
RetryHandlers are CRest Components.
CRestComponent| Method Summary | |
|---|---|
boolean |
retry(RequestException exception,
int attemptNumber)
Should return whether to retry or not the request. |
| Method Detail |
|---|
boolean retry(RequestException exception,
int attemptNumber)
throws Exception
exception - Failure reasonattemptNumber - current attempt number. Starts at 2, as the first attempt has already been consumed
Exception - Any exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||