Class AzureRetryableErrorHandler
- java.lang.Object
-
- org.jclouds.http.handlers.BackoffLimitedRetryHandler
-
- org.jclouds.azurecompute.arm.handlers.AzureRetryableErrorHandler
-
- All Implemented Interfaces:
HttpRetryHandler
,IOExceptionRetryHandler
@Singleton @Beta public class AzureRetryableErrorHandler extends BackoffLimitedRetryHandler
This handles failed responses that return aRetryableError
.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
Fields Modifier and Type Field Description protected Logger
logger
-
Fields 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
logger
protected Logger logger
-
-
Method Detail
-
shouldRetryRequest
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
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
-
-