com.amazonaws.retry
Class RetryUtils

java.lang.Object
  extended by com.amazonaws.retry.RetryUtils

public class RetryUtils
extends java.lang.Object


Constructor Summary
RetryUtils()
           
 
Method Summary
static boolean isClockSkewError(AmazonServiceException ase)
          Returns true if the specified exception is a clock skew error.
static boolean isRequestEntityTooLargeException(AmazonServiceException ase)
          Returns true if the specified exception is a request entity too large error.
static boolean isThrottlingException(AmazonServiceException ase)
          Returns true if the specified exception is a throttling error.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryUtils

public RetryUtils()
Method Detail

isThrottlingException

public static boolean isThrottlingException(AmazonServiceException ase)
Returns true if the specified exception is a throttling error.

Parameters:
ase - The exception to test.
Returns:
True if the exception resulted from a throttling error message from a service, otherwise false.

isRequestEntityTooLargeException

public static boolean isRequestEntityTooLargeException(AmazonServiceException ase)
Returns true if the specified exception is a request entity too large error.

Parameters:
ase - The exception to test.
Returns:
True if the exception resulted from a request entity too large error message from a service, otherwise false.

isClockSkewError

public static boolean isClockSkewError(AmazonServiceException ase)
Returns true if the specified exception is a clock skew error.

Parameters:
ase - The exception to test.
Returns:
True if the exception resulted from a clock skews error message from a service, otherwise false.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.