Class MaxNumberOfRetriesCondition
java.lang.Object
software.amazon.awssdk.core.retry.conditions.MaxNumberOfRetriesCondition
- All Implemented Interfaces:
 RetryCondition
Simple retry condition that allows retries up to a certain max number of retries.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic MaxNumberOfRetriesConditioncreate(int maxNumberOfRetries) booleanstatic MaxNumberOfRetriesConditionforRetryMode(RetryMode retryMode) inthashCode()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
- 
create
 - 
forRetryMode
 - 
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 request should be retried, false if not.
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -