Class RetryOnErrorCodeCondition
- java.lang.Object
-
- software.amazon.awssdk.awscore.retry.conditions.RetryOnErrorCodeCondition
-
- All Implemented Interfaces:
RetryCondition
public final class RetryOnErrorCodeCondition extends Object implements RetryCondition
Retry condition implementation that retries if the exception or the cause of the exception matches the error codes defined.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetryOnErrorCodeCondition
create(String... retryableErrorCodes)
static RetryOnErrorCodeCondition
create(Set<String> retryableErrorCodes)
boolean
shouldRetry(RetryPolicyContext context)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.retry.conditions.RetryCondition
requestSucceeded, requestWillNotBeRetried
-
-
-
-
Method Detail
-
shouldRetry
public boolean shouldRetry(RetryPolicyContext context)
- Specified by:
shouldRetry
in interfaceRetryCondition
-
create
public static RetryOnErrorCodeCondition create(String... retryableErrorCodes)
-
create
public static RetryOnErrorCodeCondition create(Set<String> retryableErrorCodes)
-
-