@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 |
INSTANCE
ALWAYS_RETRY, NEVER_RETRY
ALWAYS_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, shouldRetryRequest
protected Logger logger
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandler
shouldRetryRequest
in interface HttpRetryHandler
shouldRetryRequest
in class BackoffLimitedRetryHandler
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.