Interface StandardRetryStrategy

All Superinterfaces:
AutoCloseable, RetryStrategy, SdkAutoCloseable
All Known Implementing Classes:
DefaultStandardRetryStrategy

@SdkPublicApi @ThreadSafe public interface StandardRetryStrategy extends RetryStrategy
The standard retry strategy is the recommended RetryStrategy for normal use-cases.

Unlike AdaptiveRetryStrategy, the standard strategy is generally useful across all retry use-cases.

The standard retry strategy by default:

  1. Retries on the conditions configured in the StandardRetryStrategy.Builder.
  2. Retries 2 times (3 total attempts). Adjust with RetryStrategy.Builder.maxAttempts(int)
  3. Uses the BackoffStrategy.exponentialDelay(java.time.Duration, java.time.Duration) backoff strategy, with a base delay of 50 milliseconds and max delay of 20 seconds. Adjust with RetryStrategy.Builder.backoffStrategy(software.amazon.awssdk.retries.api.BackoffStrategy)
  4. Uses the BackoffStrategy.exponentialDelay(java.time.Duration, java.time.Duration) backoff strategy for throttling exceptions, with a base delay of 1 second and max delay of 20 seconds. Adjust with RetryStrategy.Builder.throttlingBackoffStrategy(software.amazon.awssdk.retries.api.BackoffStrategy)
  5. Honors a delay suggested by the service, bounded to be at least the computed backoff and at most five seconds more than it.
  6. Circuit breaking (disabling retries) in the event of high downstream failures within an individual scope. The circuit breaking will never prevent the first attempt. Adjust with StandardRetryStrategy.Builder.circuitBreakerEnabled(java.lang.Boolean).
See Also: