Interface RetryStrategy

All Known Subinterfaces:
AdaptiveRetryStrategy, DefaultAwareRetryStrategy, LegacyRetryStrategy, StandardRetryStrategy
All Known Implementing Classes:
BaseRetryStrategy, DefaultAdaptiveRetryStrategy, DefaultLegacyRetryStrategy, DefaultStandardRetryStrategy, RetryPolicyAdapter

@ThreadSafe @SdkPublicApi public interface RetryStrategy
A strategy used by an SDK to determine when something should be retried.

We do not recommend SDK users create their own retry strategies. We recommend refining an existing strategy:

  1. If you are using the strategy with a service, you can get the existing strategy from that service via [ServiceName]Client.defaults().retryStrategy().
  2. RetryStrategies from the software.amazon.awssdk:retries module.

Terminology:

  1. An attempt is a single invocation of an action.
  2. The attempt count is which attempt (starting with 1) the SDK is attempting to make.