Class RetryOnThrottlingCondition
java.lang.Object
software.amazon.awssdk.core.retry.conditions.RetryOnThrottlingCondition
- All Implemented Interfaces:
RetryCondition
A
RetryCondition
that will return true if the provided exception seems to be due to a throttling error from the
service to the client.-
Method Summary
Modifier and TypeMethodDescriptionstatic RetryOnThrottlingCondition
create()
boolean
int
hashCode()
boolean
shouldRetry
(RetryPolicyContext context) Determine whether a request should or should not be retried.toString()
Methods inherited from interface software.amazon.awssdk.core.retry.conditions.RetryCondition
requestSucceeded, requestWillNotBeRetried
-
Method Details
-
create
-
shouldRetry
Description copied from interface:RetryCondition
Determine whether a request should or should not be retried.- Specified by:
shouldRetry
in interfaceRetryCondition
- Parameters:
context
- Context about the state of the last request and information about the number of requests made.- Returns:
- True if the request should be retried, false if not.
-
toString
-
equals
-
hashCode
public int hashCode()
-