public final class MaxNumberOfRetriesCondition extends Object implements RetryCondition
Modifier and Type | Method and Description |
---|---|
static MaxNumberOfRetriesCondition |
create(int maxNumberOfRetries) |
boolean |
shouldRetry(RetryPolicyContext context)
Determine whether a request should or should not be retried.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultRetryCondition, none
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.public static MaxNumberOfRetriesCondition create(int maxNumberOfRetries)
Copyright © 2018. All rights reserved.