Class ClockSkewAdjuster
- java.lang.Object
-
- software.amazon.awssdk.core.internal.retry.ClockSkewAdjuster
-
@ThreadSafe @SdkInternalApi public final class ClockSkewAdjuster extends Object
Suggests a clock skew adjustment that should be applied to future requests.
-
-
Constructor Summary
Constructors Constructor Description ClockSkewAdjuster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetAdjustmentInSeconds(SdkHttpResponse response)Returns the recommended clock adjustment that should be used for future requests (in seconds).booleanshouldAdjust(SdkException exception)Returns true if the clock should be adjusted for future requests.
-
-
-
Method Detail
-
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 ofHttpClientDependencies.timeOffset(). Positive values imply the client clock is "fast" and negative values imply the client clock is "slow".
-
-