Class NonLegacyToLegacyAdapter
- java.lang.Object
-
- software.amazon.awssdk.core.internal.waiters.NonLegacyToLegacyAdapter
-
- All Implemented Interfaces:
BackoffStrategy
public class NonLegacyToLegacyAdapter extends Object implements BackoffStrategy
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.core.retry.backoff.BackoffStrategy
RETRIES_ATTEMPTED_CEILING
-
-
Constructor Summary
Constructors Constructor Description NonLegacyToLegacyAdapter(BackoffStrategy adaptee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DurationcomputeDelayBeforeNextRetry(RetryPolicyContext context)Compute the delay before the next retry request.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.retry.backoff.BackoffStrategy
calculateExponentialDelay
-
-
-
-
Constructor Detail
-
NonLegacyToLegacyAdapter
public NonLegacyToLegacyAdapter(BackoffStrategy adaptee)
-
-
Method Detail
-
computeDelayBeforeNextRetry
public Duration computeDelayBeforeNextRetry(RetryPolicyContext context)
Description copied from interface:BackoffStrategyCompute the delay before the next retry request. This strategy is only consulted when there will be a next retry.- Specified by:
computeDelayBeforeNextRetryin interfaceBackoffStrategy- Parameters:
context- Context about the state of the last request and information about the number of requests made.- Returns:
- Amount of time in milliseconds to wait before the next attempt. Must be non-negative (can be zero).
-
-