Package com.amazonaws.retry
Class RetryUtils
- java.lang.Object
-
- com.amazonaws.retry.RetryUtils
-
public class RetryUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description RetryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
isRetryableServiceException(AmazonServiceException ase)
Returns true if the specified exception is a retryable service side exception.static boolean
isThrottlingException(AmazonServiceException ase)
Returns true if the specified exception is a throttling error.
-
-
-
Method Detail
-
isRetryableServiceException
public static boolean isRetryableServiceException(AmazonServiceException ase)
Returns true if the specified exception is a retryable service side exception.- Parameters:
ase
- The exception to test.- Returns:
- True if the exception resulted from a retryable service error, otherwise false.
-
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.
-
-