Package org.jclouds.aws.handlers
Class AWSClientErrorRetryHandler
java.lang.Object
org.jclouds.aws.handlers.AWSClientErrorRetryHandler
- All Implemented Interfaces:
 HttpRetryHandler
- Direct Known Subclasses:
 SQSErrorRetryHandler
Handles Retryable responses with error codes in the 4xx range
- 
Field Summary
Fields inherited from interface org.jclouds.http.HttpRetryHandler
ALWAYS_RETRY, NEVER_RETRY - 
Constructor Summary
ConstructorsConstructorDescriptionAWSClientErrorRetryHandler(AWSUtils utils, BackoffLimitedRetryHandler backoffLimitedRetryHandler, Set<String> retryableCodes)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRetryRequest(HttpCommand command, HttpResponse response) Return true if the command should be retried.protected booleanshouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)  
- 
Constructor Details
- 
AWSClientErrorRetryHandler
@Inject public AWSClientErrorRetryHandler(AWSUtils utils, BackoffLimitedRetryHandler backoffLimitedRetryHandler, Set<String> retryableCodes)  
 - 
 - 
Method Details
- 
shouldRetryRequest
Description copied from interface:HttpRetryHandlerReturn 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:
 shouldRetryRequestin interfaceHttpRetryHandler
 - 
shouldRetryRequestOnError
protected boolean shouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)  
 -