JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.retry

Class PredefinedRetryPolicies



  • public class PredefinedRetryPolicies
    extends Object 
    This class includes a set of pre-defined retry policies, including default policies used by SDK.
    • Field Detail

      • NO_RETRY_POLICY

        public static final RetryPolicy NO_RETRY_POLICY
        No retry policy
      • DEFAULT_MAX_ERROR_RETRY

        public static final int DEFAULT_MAX_ERROR_RETRY
        SDK default max retry count for legacy retry mode
        See Also:
        Constant Field Values
      • DEFAULT_MAX_ERROR_RETRY_STANDARD_MODE

        public static final int DEFAULT_MAX_ERROR_RETRY_STANDARD_MODE
        SDK default max retry count for standard retry mode
        See Also:
        Constant Field Values
      • DEFAULT

        public static final RetryPolicy DEFAULT
        SDK default retry policy. Amazon DynamoDB has a custom retry policy that is used when no ClientConfiguration is provided.
      • DYNAMODB_DEFAULT_MAX_ERROR_RETRY

        public static final int DYNAMODB_DEFAULT_MAX_ERROR_RETRY
        Standard max retry count for DynamoDB client for DynamoDB client
        See Also:
        Constant Field Values
      • DYNAMODB_DEFAULT

        public static final RetryPolicy DYNAMODB_DEFAULT
        Default policy for DynamoDB client
      • DEFAULT_RETRY_CONDITION

        public static final RetryPolicy.RetryCondition 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

        public static final RetryPolicy.BackoffStrategy 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.
      • DEFAULT_BACKOFF_STRATEGY_V2

        public static final V2CompatibleBackoffStrategy DEFAULT_BACKOFF_STRATEGY_V2
        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

        public static final RetryPolicy.BackoffStrategy 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 Detail

      • PredefinedRetryPolicies

        public PredefinedRetryPolicies()
    • Method Detail

      • getDynamoDBDefaultRetryPolicy

        public static RetryPolicy getDynamoDBDefaultRetryPolicy()
        Returns the default retry policy for DynamoDB client. This policy will honor the maxErrorRetry set in ClientConfiguration. For DynamoDB the Default max error retry attempts is kept same as Standard Max retry of Dynamo DB. Thus honorDefaultMaxErrorRetryInRetryMode is set to False so that it uses max error retries same as DYNAMODB_STANDARD_DEFAULT_MAX_ERROR_RETRY which is 10.
        See Also:
        ClientConfiguration.setMaxErrorRetry(int)
      • getDefaultRetryPolicyWithCustomMaxRetries

        public static RetryPolicy getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
        Returns the SDK default retry policy with the specified max retry count.
      • getDynamoDBDefaultRetryPolicyWithCustomMaxRetries

        public static RetryPolicy getDynamoDBDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
        Returns the default retry policy for DynamoDB client with the specified max retry count.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /