public final class RetryOnExceptionsCondition extends Object implements RetryCondition
| Modifier and Type | Method and Description |
|---|---|
static RetryOnExceptionsCondition |
create(Class<? extends Exception>... exceptionsToRetryOn) |
static RetryOnExceptionsCondition |
create(Set<Class<? extends Exception>> exceptionsToRetryOn) |
boolean |
shouldRetry(RetryPolicyContext context)
Determine whether a request should or should not be retried.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultRetryCondition, nonepublic boolean shouldRetry(RetryPolicyContext context)
RetryConditionshouldRetry in interface RetryConditioncontext - Context about the state of the last request and information about the number of requests made.public static RetryOnExceptionsCondition create(Set<Class<? extends Exception>> exceptionsToRetryOn)
exceptionsToRetryOn - Exception classes to retry on.public static RetryOnExceptionsCondition create(Class<? extends Exception>... exceptionsToRetryOn)
exceptionsToRetryOn - Exception classes to retry on.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.