Class AndRetryCondition
java.lang.Object
software.amazon.awssdk.core.retry.conditions.AndRetryCondition
- All Implemented Interfaces:
- RetryCondition
Composite 
RetryCondition that evaluates to true when all contained retry conditions evaluate to true.- 
Method SummaryModifier and TypeMethodDescriptionstatic AndRetryConditioncreate(RetryCondition... conditions) booleaninthashCode()voidrequestSucceeded(RetryPolicyContext context) Called by the SDK to notify this condition that the provided request succeeded.voidCalled by the SDK to notify this condition that the provided request will not be retried, because some retry condition determined that it shouldn't be retried.booleanshouldRetry(RetryPolicyContext context) Determine whether a request should or should not be retried.toString()
- 
Method Details- 
create
- 
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 all conditions are true, false otherwise.
 
- 
requestWillNotBeRetriedDescription copied from interface:RetryConditionCalled by the SDK to notify this condition that the provided request will not be retried, because some retry condition determined that it shouldn't be retried.- Specified by:
- requestWillNotBeRetriedin interface- RetryCondition
 
- 
requestSucceededDescription copied from interface:RetryConditionCalled by the SDK to notify this condition that the provided request succeeded. This method is invoked even if the execution never failed before (RetryPolicyContext.retriesAttempted()is zero).- Specified by:
- requestSucceededin interface- RetryCondition
 
- 
equals
- 
hashCode
- 
toString
 
-