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

Enum RetryMode

    • Enum Constant Detail

      • LEGACY

        public static final RetryMode LEGACY
        The legacy mode that only enables throttled retry for transient errors
      • STANDARD

        public static final RetryMode STANDARD
        Standard mode is built on top of legacy mode and has throttled retry enabled for throttling errors apart from transient errors. In addition, timeout(socket timeout or connection timeout) errors would cost more retry capacity compared with LEGACY.
      • ADAPTIVE

        public static final RetryMode ADAPTIVE
        Adaptive retry mode dynamically limits the rate of AWS requests to maximize success rate. This may be at the expense of request latency. Adaptive retry mode is not recommended when predictable latency is important.

        Warning: Adaptive retry mode assumes that the client is working against a single resource (e.g. one DynamoDB Table or one S3 Bucket). If you use a single client for multiple resources, throttling or outages associated with one resource will result in increased latency and failures when accessing all other resources via the same client. When using adaptive retry mode, we recommend using a single client per resource.

        See Also:
        RetryPolicy.isFastFailRateLimiting()
    • Method Detail

      • values

        public static RetryMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RetryMode c : RetryMode.values())
         System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RetryMode valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
      • fromName

        public static RetryMode fromName(String value)
        Returns a retry mode enum corresponding to the given retryMode name.
        Parameters:
        value - The name of the retry mode
        Returns:
        RetryMode enum representing the given retry mode name.
Skip navigation links

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