Class DefaultStandardRetryStrategy
java.lang.Object
software.amazon.awssdk.retries.internal.BaseRetryStrategy
software.amazon.awssdk.retries.internal.DefaultStandardRetryStrategy
- All Implemented Interfaces:
RetryStrategy,DefaultAwareRetryStrategy,StandardRetryStrategy
@SdkInternalApi
public final class DefaultStandardRetryStrategy
extends BaseRetryStrategy
implements StandardRetryStrategy
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class software.amazon.awssdk.retries.internal.BaseRetryStrategy
backoffStrategy, circuitBreakerEnabled, defaultsAdded, exceptionCost, log, maxAttempts, retryPredicates, throttlingBackoffStrategy, tokenBucketStore, treatAsThrottling, useClientDefaults -
Method Summary
Methods inherited from class software.amazon.awssdk.retries.internal.BaseRetryStrategy
acquireInitialToken, addDefaults, computeBackoff, computeInitialBackoff, exceptionCost, hasRetryPredicates, maxAttempts, recordSuccess, refreshRetryToken, retryPredicates, shouldAddDefaults, toString, updateStateForRetry, updateStateForSuccess, useClientDefaultsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.retries.api.RetryStrategy
acquireInitialToken, maxAttempts, recordSuccess, refreshRetryToken, useClientDefaults
-
Method Details
-
toBuilder
- Specified by:
toBuilderin interfaceRetryStrategy- Specified by:
toBuilderin interfaceStandardRetryStrategy
-
builder
Description copied from interface:StandardRetryStrategyCreate a newStandardRetryStrategy.Builder.Example Usage
StandardRetryStrategy retryStrategy = StandardRetryStrategy.builder() .retryOnExceptionInstanceOf(IllegalArgumentException.class) .retryOnExceptionInstanceOf(IllegalStateException.class) .build();
-