Package com.google.api.client.http
Interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
-
- Enclosing class:
- HttpBackOffUnsuccessfulResponseHandler
@Beta public static interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
-
-
Field Summary
Fields Modifier and Type Field Description static HttpBackOffUnsuccessfulResponseHandler.BackOffRequiredALWAYSBack-off required implementation which returnstrueto everyisRequired(HttpResponse)call.static HttpBackOffUnsuccessfulResponseHandler.BackOffRequiredON_SERVER_ERRORBack-off required implementation which itsisRequired(HttpResponse)returnstrueif a server error occurred (5xx).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRequired(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 returnstrueto everyisRequired(HttpResponse)call.
-
ON_SERVER_ERROR
static final HttpBackOffUnsuccessfulResponseHandler.BackOffRequired ON_SERVER_ERROR
Back-off required implementation which itsisRequired(HttpResponse)returnstrueif 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.
-
-