@Beta public static interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
| Modifier and Type | Field and Description |
|---|---|
static HttpBackOffUnsuccessfulResponseHandler |
ALWAYS
Back-off required implementation which returns
true to every
isRequired(HttpResponse) call.
|
static HttpBackOffUnsuccessfulResponseHandler |
ON_SERVER_ERROR
Back-off required implementation which its
isRequired(HttpResponse) returns
true if a server error occurred (5xx).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRequired(HttpResponse
Invoked when an abnormal response is received and determines if back-off is required.
|
static final HttpBackOffUnsuccessfulResponseHandler.BackOffRequired ALWAYS
true to every
isRequired(HttpResponse) call.
static final HttpBackOffUnsuccessfulResponseHandler.BackOffRequired ON_SERVER_ERROR
isRequired(HttpResponse) returns
true if a server error occurred (5xx).
boolean isRequired(HttpResponseresponse)