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 RetryPolicy.RetryPolicyBuilder

  • Enclosing class:
    RetryPolicy


    public static final class RetryPolicy.RetryPolicyBuilder
    extends Object 
    • Constructor Detail

      • RetryPolicyBuilder

        public RetryPolicyBuilder()
    • Method Detail

      • withRetryCondition

        public RetryPolicy.RetryPolicyBuilder withRetryCondition(RetryPolicy.RetryCondition retryCondition)
        Set the retry condition on whether a specific request and exception should be retried. If null value is specified, the SDK' *default retry condition is used.
        Parameters:
        retryCondition - The retry condition.
        Returns:
        This object for method chaining.
      • withBackoffStrategy

        public RetryPolicy.RetryPolicyBuilder withBackoffStrategy(RetryPolicy.BackoffStrategy backoffStrategy)
        Set the back-off strategy for controlling how long the next retry should wait. If null value is specified, the SDK' default exponential back-off strategy is used.
        Parameters:
        backoffStrategy - The backoff strategy.
        Returns:
        This object for method chaining.
      • withMaxErrorRetry

        public RetryPolicy.RetryPolicyBuilder withMaxErrorRetry(int maxErrorRetry)
        Set aximum number of retry attempts for failed requests.
        Parameters:
        maxErrorRetry - The max retry attempts.
        Returns:
        This object for method chaining.
      • setMaxErrorRetry

        public void setMaxErrorRetry(int maxErrorRetry)
      • withHonorMaxErrorRetryInClientConfig

        public RetryPolicy.RetryPolicyBuilder withHonorMaxErrorRetryInClientConfig(boolean honorMaxErrorRetryInClientConfig)
        Set whether this retry policy should honor the max error retry set by ClientConfiguration.setMaxErrorRetry(int).
        Parameters:
        honorMaxErrorRetryInClientConfig - Whether the policy should honor the max error retry setting on the client configuration.
        Returns:
        This object for method chaining.
      • setHonorMaxErrorRetryInClientConfig

        public void setHonorMaxErrorRetryInClientConfig(boolean honorMaxErrorRetryInClientConfig)
      • withRetryMode

        public RetryPolicy.RetryPolicyBuilder withRetryMode(RetryMode retryMode)
        Set the retry mode for the client.
        Parameters:
        retryMode - The retry mode.
        Returns:
        This object for method chaining.
      • setRetryMode

        public void setRetryMode(RetryMode retryMode)
      • withHonorDefaultMaxErrorRetryInRetryMode

        public RetryPolicy.RetryPolicyBuilder withHonorDefaultMaxErrorRetryInRetryMode(boolean honorDefaultMaxErrorRetryInRetryMode)
        Whether the policy should honor the max error retries dictated by the configured retry mode.
        Parameters:
        honorDefaultMaxErrorRetryInRetryMode - Whether the policy should honor the max error retries dictated by the configured retry mode.
        Returns:
        This object for method chaining.
      • setHonorDefaultMaxErrorRetryInRetryMode

        public void setHonorDefaultMaxErrorRetryInRetryMode(boolean honorDefaultMaxErrorRetryInRetryMode)
      • withFastFailRateLimiting

        public RetryPolicy.RetryPolicyBuilder withFastFailRateLimiting(boolean fastFailRateLimiting)
        Whether the client should fail immediately when it cannot immediately make a request because there is not enough capacity in the rate limiter.

        Note: This configuration only has an effect when used in combination with the RetryMode.ADAPTIVE retry mode.

        Parameters:
        fastFailRateLimiting - Whether to fail fast.
        Returns:
        This object for method chaining.
      • setFastFailRateLimiting

        public void setFastFailRateLimiting(boolean fastFailRateLimiting)
      • withHonorDefaultBackoffStrategyInRetryMode

        public RetryPolicy.RetryPolicyBuilder withHonorDefaultBackoffStrategyInRetryMode(boolean honorBackOffStrategyInRetryMode)
        Whether the policy should honor the backoff strategy dictated by the configured retry mode.
        Parameters:
        honorBackOffStrategyInRetryMode - Whether the policy should honor the backoff strategy dictated by the configured retry mode.
        Returns:
        This object for method chaining.
      • setHonorDefaultBackoffStrategyInRetryMode

        public void setHonorDefaultBackoffStrategyInRetryMode(boolean honorBackOffStrategyInRetryMode)
Skip navigation links

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