org.jclouds.sqs.handlers
Class SQSErrorRetryHandler
java.lang.Object
org.jclouds.aws.handlers.AWSClientErrorRetryHandler
org.jclouds.sqs.handlers.SQSErrorRetryHandler
- All Implemented Interfaces:
- org.jclouds.http.HttpRetryHandler
public class SQSErrorRetryHandler
- extends org.jclouds.aws.handlers.AWSClientErrorRetryHandler
- Author:
- Adrian Cole
| Fields inherited from interface org.jclouds.http.HttpRetryHandler |
ALWAYS_RETRY, NEVER_RETRY |
|
Constructor Summary |
SQSErrorRetryHandler(org.jclouds.aws.util.AWSUtils utils,
org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler,
Set<String> retryableCodes,
int maxTries,
long retryInterval)
|
|
Method Summary |
boolean |
shouldRetryRequestOnError(org.jclouds.http.HttpCommand command,
org.jclouds.http.HttpResponse response,
org.jclouds.aws.domain.AWSError error)
|
| Methods inherited from class org.jclouds.aws.handlers.AWSClientErrorRetryHandler |
shouldRetryRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQSErrorRetryHandler
@Inject
public SQSErrorRetryHandler(org.jclouds.aws.util.AWSUtils utils,
org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler,
Set<String> retryableCodes,
@Named(value="jclouds.sqs.create-queue.max-retries")
int maxTries,
@Named(value="jclouds.sqs.create-queue.retry-interval")
long retryInterval)
shouldRetryRequestOnError
public boolean shouldRetryRequestOnError(org.jclouds.http.HttpCommand command,
org.jclouds.http.HttpResponse response,
org.jclouds.aws.domain.AWSError error)
- Overrides:
shouldRetryRequestOnError in class org.jclouds.aws.handlers.AWSClientErrorRetryHandler
Copyright © 2009-2012 jclouds. All Rights Reserved.