Class RetryOnExceptionsCondition
java.lang.Object
software.amazon.awssdk.core.retry.conditions.RetryOnExceptionsCondition
- All Implemented Interfaces:
- RetryCondition
@SdkPublicApi
public final class RetryOnExceptionsCondition
extends Object
implements RetryCondition
Retry condition implementation that retries if the exception or the cause of the exception matches the classes defined.
- 
Method SummaryModifier and TypeMethodDescriptionstatic RetryOnExceptionsConditionstatic RetryOnExceptionsConditionbooleaninthashCode()booleanshouldRetry(RetryPolicyContext context) Determine whether a request should or should not be retried.toString()Methods inherited from interface software.amazon.awssdk.core.retry.conditions.RetryConditionrequestSucceeded, requestWillNotBeRetried
- 
Method Details- 
shouldRetryDescription copied from interface:RetryConditionDetermine whether a request should or should not be retried.- Specified by:
- shouldRetryin interface- RetryCondition
- Parameters:
- context- Context about the state of the last request and information about the number of requests made.
- Returns:
- True if the exception class or the cause of the exception matches one of the exceptions supplied at initialization time.
 
- 
createpublic static RetryOnExceptionsCondition create(Set<Class<? extends Exception>> exceptionsToRetryOn) - Parameters:
- exceptionsToRetryOn- Exception classes to retry on.
 
- 
create- Parameters:
- exceptionsToRetryOn- Exception classes to retry on.
 
- 
equals
- 
hashCode
- 
toString
 
-