public final class RetryOnStatusCodeCondition extends Object implements RetryCondition
Modifier and Type | Method and Description |
---|---|
static RetryOnStatusCodeCondition |
create(Integer... statusCodesToRetryOn) |
static RetryOnStatusCodeCondition |
create(Set<Integer> statusCodesToRetryOn) |
boolean |
equals(Object o) |
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 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 RetryOnStatusCodeCondition create(Set<Integer> statusCodesToRetryOn)
public static RetryOnStatusCodeCondition create(Integer... statusCodesToRetryOn)
Copyright © 2022. All rights reserved.