@Beta public static interface HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
Modifier and Type | Field and Description |
---|---|
static HttpBackOffUnsuccessfulResponseHandler.BackOffRequired |
ALWAYS
Back-off required implementation which returns
true to every isRequired(HttpResponse) call. |
static HttpBackOffUnsuccessfulResponseHandler.BackOffRequired |
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 response)
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(HttpResponse response)
Copyright © 2011–2023 Google. All rights reserved.