Class ClockSkewAdjuster

java.lang.Object
software.amazon.awssdk.core.internal.retry.ClockSkewAdjuster

@ThreadSafe public final class ClockSkewAdjuster extends Object
Suggests a clock skew adjustment that should be applied to future requests.
  • Constructor Details

    • ClockSkewAdjuster

      public ClockSkewAdjuster()
  • Method Details

    • shouldAdjust

      public boolean shouldAdjust(SdkException exception)
      Returns true if the clock should be adjusted for future requests.
    • getAdjustmentInSeconds

      public Integer getAdjustmentInSeconds(SdkHttpResponse response)
      Returns the recommended clock adjustment that should be used for future requests (in seconds). The result has the same semantics of HttpClientDependencies.timeOffset(). Positive values imply the client clock is "fast" and negative values imply the client clock is "slow".