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).final booleanReturns true if there are retry predicates configured for this retry strategy.intReturns the maximum numbers attempts that this retry policy will allow.final RecordSuccessResponserecordSuccess(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, waitMethods inherited from interface software.amazon.awssdk.retries.api.RetryStrategy
toBuilder
-
Method Details
-
acquireInitialToken
This method implements the logic ofRetryStrategy.acquireInitialToken(AcquireInitialTokenRequest).- Specified by:
acquireInitialTokenin interfaceRetryStrategy- See Also:
-
refreshRetryToken
This method implements the logic ofRetryStrategy.refreshRetryToken(RefreshRetryTokenRequest).- Specified by:
refreshRetryTokenin interfaceRetryStrategy- See Also:
-
recordSuccess
This method implements the logic ofRetryStrategy.recordSuccess(RecordSuccessRequest).- Specified by:
recordSuccessin interfaceRetryStrategy- See Also:
-
maxAttempts
public int maxAttempts()Description copied from interface:RetryStrategyReturns the maximum numbers attempts that this retry policy will allow.- Specified by:
maxAttemptsin interfaceRetryStrategy- Returns:
- the maximum numbers attempts that this retry policy will allow.
-
hasRetryPredicates
public final boolean hasRetryPredicates()Returns true if there are retry predicates configured for this retry strategy.- Returns:
- true if there are retry predicates configured for this retry strategy.
-