Class ClockSkewAdjuster
java.lang.Object
software.amazon.awssdk.core.internal.retry.ClockSkewAdjuster
Suggests a clock skew adjustment that should be applied to future requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdjustmentInSeconds
(SdkHttpResponse response) Returns the recommended clock adjustment that should be used for future requests (in seconds).boolean
shouldAdjust
(SdkException exception) Returns true if the clock should be adjusted for future requests.
-
Constructor Details
-
ClockSkewAdjuster
public ClockSkewAdjuster()
-
-
Method Details
-
shouldAdjust
Returns true if the clock should be adjusted for future requests. -
getAdjustmentInSeconds
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".
-