Package com.google.api.client.http
Interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
-
- Enclosing class:
- HttpBackOffUnsuccessfulResponseHandler
@Beta public static interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
- Author:
- Eyal Peled
-
-
Field Summary
Fields Modifier and Type Field Description static HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
ALWAYS
Back-off required implementation which returnstrue
to everyisRequired(HttpResponse)
call.static HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
ON_SERVER_ERROR
Back-off required implementation which itsisRequired(HttpResponse)
returnstrue
if a server error occurred (5xx).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRequired(HttpResponse response)
Invoked when an abnormal response is received and determines if back-off is required.
-
-
-
Field Detail
-
ALWAYS
static final HttpBackOffUnsuccessfulResponseHandler.BackOffRequired ALWAYS
Back-off required implementation which returnstrue
to everyisRequired(HttpResponse)
call.
-
ON_SERVER_ERROR
static final HttpBackOffUnsuccessfulResponseHandler.BackOffRequired ON_SERVER_ERROR
Back-off required implementation which itsisRequired(HttpResponse)
returnstrue
if a server error occurred (5xx).
-
-
Method Detail
-
isRequired
boolean isRequired(HttpResponse response)
Invoked when an abnormal response is received and determines if back-off is required.
-
-