Package com.google.api.client.http
Interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
- Enclosing class:
HttpBackOffUnsuccessfulResponseHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionBack-off required implementation which returnstrue
to everyisRequired(HttpResponse)
call.Back-off required implementation which itsisRequired(HttpResponse)
returnstrue
if a server error occurred (5xx). -
Method Summary
Modifier and TypeMethodDescriptionboolean
isRequired
(HttpResponse response) Invoked when an abnormal response is received and determines if back-off is required.
-
Field Details
-
ALWAYS
Back-off required implementation which returnstrue
to everyisRequired(HttpResponse)
call. -
ON_SERVER_ERROR
Back-off required implementation which itsisRequired(HttpResponse)
returnstrue
if a server error occurred (5xx).
-
-
Method Details
-
isRequired
Invoked when an abnormal response is received and determines if back-off is required.
-