Class RetryOnErrorCodeCondition
java.lang.Object
software.amazon.awssdk.awscore.retry.conditions.RetryOnErrorCodeCondition
- All Implemented Interfaces:
RetryCondition
Retry condition implementation that retries if the exception or the cause of the exception matches the error codes defined.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RetryOnErrorCodeCondition
static RetryOnErrorCodeCondition
boolean
shouldRetry
(RetryPolicyContext context) Determine whether a request should or should not be retried.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.retry.conditions.RetryCondition
requestSucceeded, requestWillNotBeRetried
-
Method Details
-
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.
-
create
-
create
-