Package com.amazonaws.retry
Class PredefinedRetryPolicies
java.lang.Object
com.amazonaws.retry.PredefinedRetryPolicies
This class includes a set of pre-defined retry policies, including default
policies used by SDK.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The default implementation of RetryCondition used by the SDK. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RetryPolicy
SDK default retry policy (except for AmazonDynamoDBClient, whose constructor will replace the DEFAULT with DYNAMODB_DEFAULT.)static final RetryPolicy.BackoffStrategy
The SDK default back-off strategy, which increases exponentially up to a max amount of delay.static final int
SDK default max retry countstatic final RetryPolicy.RetryCondition
The SDK default retry condition, which checks for various conditions in the following order: Never retry on requests with non-repeatable content; Retry on client exceptions caused by IOException; Retry on service exceptions that are either 500 internal server errors, 503 service unavailable errors, service throttling errors or clock skew errors.static final RetryPolicy
Default policy for DynamoDB clientstatic final RetryPolicy.BackoffStrategy
The default back-off strategy for DynamoDB client, which increases exponentially up to a max amount of delay.static final int
Default max retry count for DynamoDB clientstatic final RetryPolicy
No retry policy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryPolicy
Returns the SDK default retry policy.static RetryPolicy
getDefaultRetryPolicyWithCustomMaxRetries
(int maxErrorRetry) Returns the SDK default retry policy with the specified max retry count.static RetryPolicy
Returns the default retry policy for DynamoDB client.static RetryPolicy
getDynamoDBDefaultRetryPolicyWithCustomMaxRetries
(int maxErrorRetry) Returns the default retry policy for DynamoDB client with the specified max retry count.
-
Field Details
-
NO_RETRY_POLICY
No retry policy -
DEFAULT_MAX_ERROR_RETRY
public static final int DEFAULT_MAX_ERROR_RETRYSDK default max retry count- See Also:
-
DEFAULT
SDK default retry policy (except for AmazonDynamoDBClient, whose constructor will replace the DEFAULT with DYNAMODB_DEFAULT.) -
DYNAMODB_DEFAULT_MAX_ERROR_RETRY
public static final int DYNAMODB_DEFAULT_MAX_ERROR_RETRYDefault max retry count for DynamoDB client- See Also:
-
DYNAMODB_DEFAULT
Default policy for DynamoDB client -
DEFAULT_RETRY_CONDITION
The SDK default retry condition, which checks for various conditions in the following order:- Never retry on requests with non-repeatable content;
- Retry on client exceptions caused by IOException;
- Retry on service exceptions that are either 500 internal server errors, 503 service unavailable errors, service throttling errors or clock skew errors.
-
DEFAULT_BACKOFF_STRATEGY
The SDK default back-off strategy, which increases exponentially up to a max amount of delay. It also applies a larger scale factor upon service throttling exception. -
DYNAMODB_DEFAULT_BACKOFF_STRATEGY
The default back-off strategy for DynamoDB client, which increases exponentially up to a max amount of delay. Compared to the SDK default back-off strategy, it applies a smaller scale factor.
-
-
Constructor Details
-
PredefinedRetryPolicies
public PredefinedRetryPolicies()
-
-
Method Details
-
getDefaultRetryPolicy
Returns the SDK default retry policy. This policy will honor the maxErrorRetry set in ClientConfiguration. -
getDynamoDBDefaultRetryPolicy
Returns the default retry policy for DynamoDB client. This policy will honor the maxErrorRetry set in ClientConfiguration. -
getDefaultRetryPolicyWithCustomMaxRetries
Returns the SDK default retry policy with the specified max retry count. -
getDynamoDBDefaultRetryPolicyWithCustomMaxRetries
Returns the default retry policy for DynamoDB client with the specified max retry count.
-