Package org.jclouds.aws.handlers
Class AWSClientErrorRetryHandler
- java.lang.Object
-
- org.jclouds.aws.handlers.AWSClientErrorRetryHandler
-
- All Implemented Interfaces:
HttpRetryHandler
public class AWSClientErrorRetryHandler extends Object implements HttpRetryHandler
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
Constructors Constructor Description AWSClientErrorRetryHandler(AWSUtils utils, BackoffLimitedRetryHandler backoffLimitedRetryHandler, Set<String> retryableCodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldRetryRequest(HttpCommand command, HttpResponse response)protected booleanshouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)
-
-
-
Constructor Detail
-
AWSClientErrorRetryHandler
@Inject public AWSClientErrorRetryHandler(AWSUtils utils, BackoffLimitedRetryHandler backoffLimitedRetryHandler, Set<String> retryableCodes)
-
-
Method Detail
-
shouldRetryRequest
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
- Specified by:
shouldRetryRequestin interfaceHttpRetryHandler
-
shouldRetryRequestOnError
protected boolean shouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)
-
-