public final class MaxNumberOfRetriesCondition extends Object implements RetryCondition
Modifier and Type | Method and Description |
---|---|
static MaxNumberOfRetriesCondition |
create(int maxNumberOfRetries) |
boolean |
equals(Object o) |
static MaxNumberOfRetriesCondition |
forRetryMode(RetryMode retryMode) |
int |
hashCode() |
boolean |
shouldRetry(RetryPolicyContext context)
Determine whether a request should or should not be retried.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
defaultRetryCondition, none, requestSucceeded, requestWillNotBeRetried
public static MaxNumberOfRetriesCondition create(int maxNumberOfRetries)
public static MaxNumberOfRetriesCondition forRetryMode(RetryMode retryMode)
public boolean shouldRetry(RetryPolicyContext context)
RetryCondition
shouldRetry
in interface RetryCondition
context
- Context about the state of the last request and information about the number of requests made.Copyright © 2021. All rights reserved.