Class RetryOnClockSkewCondition

java.lang.Object
software.amazon.awssdk.core.retry.conditions.RetryOnClockSkewCondition
All Implemented Interfaces:
RetryCondition

public final class RetryOnClockSkewCondition extends Object implements RetryCondition
A RetryCondition that will return true if the provided exception seems to be due to a clock skew between the client and service.
  • Method Details

    • create

      public static RetryOnClockSkewCondition create()
    • shouldRetry

      public boolean shouldRetry(RetryPolicyContext context)
      Description copied from interface: RetryCondition
      Determine whether a request should or should not be retried.
      Specified by:
      shouldRetry in interface RetryCondition
      Parameters:
      context - Context about the state of the last request and information about the number of requests made.
      Returns:
      True if the request should be retried, false if not.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object