Class AzureRetryableErrorHandler
java.lang.Object
org.jclouds.http.handlers.BackoffLimitedRetryHandler
org.jclouds.azurecompute.arm.handlers.AzureRetryableErrorHandler
- All Implemented Interfaces:
HttpRetryHandler
,IOExceptionRetryHandler
This handles failed responses that return a
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.
-
Field Summary
FieldsFields inherited from class org.jclouds.http.handlers.BackoffLimitedRetryHandler
INSTANCE
Fields inherited from interface org.jclouds.http.HttpRetryHandler
ALWAYS_RETRY, NEVER_RETRY
Fields inherited from interface org.jclouds.http.IOExceptionRetryHandler
ALWAYS_RETRY, NEVER_RETRY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldRetryRequest
(HttpCommand command, HttpResponse response) Return true if the command should be retried.Methods inherited from class org.jclouds.http.handlers.BackoffLimitedRetryHandler
imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, shouldRetryRequest
-
Field Details
-
logger
-
-
Method Details
-
shouldRetryRequest
Description copied from interface:HttpRetryHandler
Return true if the command should be retried. This method should only be invoked when the response has failed with a HTTP 5xx error indicating a server-side error.- Specified by:
shouldRetryRequest
in interfaceHttpRetryHandler
- Overrides:
shouldRetryRequest
in classBackoffLimitedRetryHandler
-