@Singleton @Beta public class AzureRetryableErrorHandler extends BackoffLimitedRetryHandler
RetryableError.
In order to determine if the error is retryable, the response body must be read, so this handler will have to buffer the response payload in memory so the response body can be read again in subsequent steps of the response processing flow.
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger |
INSTANCEALWAYS_RETRY, NEVER_RETRYALWAYS_RETRY, NEVER_RETRY| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRetryRequest(HttpCommand command,
HttpResponse response)
Return true if the command should be retried.
|
imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, shouldRetryRequestprotected Logger logger
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandlershouldRetryRequest in interface HttpRetryHandlershouldRetryRequest in class BackoffLimitedRetryHandlerCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.