Class RetryOnStatusCodeCondition
java.lang.Object
software.amazon.awssdk.core.retry.conditions.RetryOnStatusCodeCondition
- All Implemented Interfaces:
RetryCondition
Retry condition implementation that retries if the HTTP status code matches one of the provided status codes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RetryOnStatusCodeConditionstatic RetryOnStatusCodeConditionbooleaninthashCode()booleanshouldRetry(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
-
shouldRetry
Description copied from interface:RetryConditionDetermine whether a request should or should not be retried.- Specified by:
shouldRetryin interfaceRetryCondition- Parameters:
context- Context about the state of the last request and information about the number of requests made.- Returns:
- True if the HTTP status code matches one of the provided status codes. False if it doesn't match or the request failed for reasons other than an exceptional HTTP response (i.e. IOException).
-
create
-
create
-
equals
-
hashCode
-
toString
-