public final class RetryOnClockSkewCondition extends Object implements RetryCondition
RetryCondition
that will return true if the provided exception seems to be due to a clock skew between the
client and service.Modifier and Type | Method and Description |
---|---|
static RetryOnClockSkewCondition |
create() |
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 static RetryOnClockSkewCondition create()
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 © 2023. All rights reserved.