org.jclouds.aws.handlers
Class AWSClientErrorRetryHandler

java.lang.Object
  extended by org.jclouds.aws.handlers.AWSClientErrorRetryHandler
All Implemented Interfaces:
org.jclouds.http.HttpRetryHandler

public class AWSClientErrorRetryHandler
extends Object
implements org.jclouds.http.HttpRetryHandler

Handles Retryable responses with error codes in the 4xx range

Author:
Adrian Cole

Field Summary
 
Fields inherited from interface org.jclouds.http.HttpRetryHandler
ALWAYS_RETRY, NEVER_RETRY
 
Constructor Summary
AWSClientErrorRetryHandler(AWSUtils utils, org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler)
           
 
Method Summary
 boolean shouldRetryRequest(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWSClientErrorRetryHandler

@Inject
public AWSClientErrorRetryHandler(AWSUtils utils,
                                         org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler)
Method Detail

shouldRetryRequest

public boolean shouldRetryRequest(org.jclouds.http.HttpCommand command,
                                  org.jclouds.http.HttpResponse response)
Specified by:
shouldRetryRequest in interface org.jclouds.http.HttpRetryHandler


Copyright © 2009-2012 jclouds. All Rights Reserved.