Class BaseRetryStrategy
java.lang.Object
software.amazon.awssdk.retries.internal.BaseRetryStrategy
- All Implemented Interfaces:
RetryStrategy
- Direct Known Subclasses:
DefaultAdaptiveRetryStrategy
,DefaultLegacyRetryStrategy
,DefaultStandardRetryStrategy
Generic class that implements that common logic for all the retries strategies with extension points for specific strategies to
tailor the behavior to its needs.
-
Method Summary
Modifier and TypeMethodDescriptionThis method implements the logic ofRetryStrategy.acquireInitialToken(AcquireInitialTokenRequest)
.int
Returns the maximum numbers attempts that this retry policy will allow.final RecordSuccessResponse
recordSuccess
(RecordSuccessRequest request) This method implements the logic ofRetryStrategy.recordSuccess(RecordSuccessRequest)
.This method implements the logic ofRetryStrategy.refreshRetryToken(RefreshRetryTokenRequest)
.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.retries.api.RetryStrategy
toBuilder
-
Method Details
-
acquireInitialToken
This method implements the logic ofRetryStrategy.acquireInitialToken(AcquireInitialTokenRequest)
.- Specified by:
acquireInitialToken
in interfaceRetryStrategy
- See Also:
-
refreshRetryToken
This method implements the logic ofRetryStrategy.refreshRetryToken(RefreshRetryTokenRequest)
.- Specified by:
refreshRetryToken
in interfaceRetryStrategy
- See Also:
-
recordSuccess
This method implements the logic ofRetryStrategy.recordSuccess(RecordSuccessRequest)
.- Specified by:
recordSuccess
in interfaceRetryStrategy
- See Also:
-
maxAttempts
public int maxAttempts()Description copied from interface:RetryStrategy
Returns the maximum numbers attempts that this retry policy will allow.- Specified by:
maxAttempts
in interfaceRetryStrategy
- Returns:
- the maximum numbers attempts that this retry policy will allow.
-