Interface StandardRetryStrategy

All Superinterfaces:
RetryStrategy
All Known Implementing Classes:
DefaultStandardRetryStrategy

@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 1 second and max delay of 20 seconds. Adjust with RetryStrategy.Builder.backoffStrategy(software.amazon.awssdk.retries.api.BackoffStrategy)
  4. Circuit breaking (disabling retries) in the event of high downstream failures across the scope of the strategy. The circuit breaking will never prevent a successful first attempt. Adjust with StandardRetryStrategy.Builder.circuitBreakerEnabled(java.lang.Boolean).
See Also: