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

    • Constructor Detail

      • RetryPolicy

        public RetryPolicy(RetryPolicy.RetryCondition retryCondition,
         RetryPolicy.BackoffStrategy backoffStrategy,
         int maxErrorRetry,
         boolean honorMaxErrorRetryInClientConfig)
        Constructs a new retry policy. See PredefinedRetryPolicies for some pre-defined policy components, and also the default policies used by SDK.
        Parameters:
        retryCondition - Retry condition on whether a specific request and exception should be retried. If null value is specified, the SDK' default retry condition is used.
        backoffStrategy - 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.
        maxErrorRetry - Maximum number of retry attempts for failed requests.
        honorMaxErrorRetryInClientConfig - Whether this retry policy should honor the max error retry set by ClientConfiguration.setMaxErrorRetry(int)
        See Also:
        ClientConfiguration, PredefinedRetryPolicies
      • RetryPolicy

        public RetryPolicy(RetryPolicy.RetryCondition retryCondition,
         RetryPolicy.BackoffStrategy backoffStrategy,
         int maxErrorRetry,
         boolean honorMaxErrorRetryInClientConfig,
         boolean honorDefaultMaxErrorRetryInRetryMode,
         boolean honorBackoffStrategyInRetryMode)
    • Method Detail

      • getRetryCondition

        public RetryPolicy.RetryCondition getRetryCondition()
        Returns the retry condition included in this retry policy.
        Returns:
        The retry condition included in this retry policy.
      • getBackoffStrategy

        public RetryPolicy.BackoffStrategy getBackoffStrategy()
        Returns the back-off strategy included in this retry policy.
        Returns:
        The back-off strategy included in this retry policy.
      • getMaxErrorRetry

        public int getMaxErrorRetry()
        Returns the maximum number of retry attempts.
        Returns:
        The maximum number of retry attempts.
      • isMaxErrorRetryInClientConfigHonored

        public boolean isMaxErrorRetryInClientConfigHonored()
        Returns whether this retry policy should honor the max error retry set in ClientConfiguration.
        Returns:
        Whether this retry policy should honor the max error retry set in ClientConfiguration
        See Also:
        ClientConfiguration.setMaxErrorRetry(int)
      • getRetryMode

        public RetryMode getRetryMode()
        Returns the RetryMode to be used.
        Returns:
        retryMode
      • isFastFailRateLimiting

        public boolean isFastFailRateLimiting()
        Whether the client should fail immediately when RetryMode.ADAPTIVE is enabled, and there is not enough capacity in the rate limiter to execute the request immediately.

        The default configuration value is false, which will cause client to wait until enough capacity is available.

        Returns:
        The fast fail configuration value.
Skip navigation links

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