public final class AndRetryCondition extends Object implements RetryCondition
RetryCondition that evaluates to true when all contained retry conditions evaluate to true.| Modifier and Type | Method and Description |
|---|---|
static AndRetryCondition |
create(RetryCondition... conditions) |
boolean |
equals(Object o) |
int |
hashCode() |
void |
requestSucceeded(RetryPolicyContext context)
Called by the SDK to notify this condition that the provided request succeeded.
|
void |
requestWillNotBeRetried(RetryPolicyContext context)
Called 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.
|
boolean |
shouldRetry(RetryPolicyContext context)
Determine whether a request should or should not be retried.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdefaultRetryCondition, nonepublic static AndRetryCondition create(RetryCondition... conditions)
public 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 void requestWillNotBeRetried(RetryPolicyContext context)
RetryConditionrequestWillNotBeRetried in interface RetryConditionpublic void requestSucceeded(RetryPolicyContext context)
RetryConditionRetryPolicyContext.retriesAttempted() is zero).requestSucceeded in interface RetryConditionCopyright © 2020. All rights reserved.