public static class PredefinedBackoffStrategies.SDKDefaultBackoffStrategy extends Object
NO_DELAY| Constructor and Description | 
|---|
| SDKDefaultBackoffStrategy() | 
| SDKDefaultBackoffStrategy(int baseDelay,
                         int throttledBaseDelay,
                         int maxBackoff) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | computeDelayBeforeNextRetry(RetryPolicyContext context)Compute the delay before the next retry request. | 
| long | delayBeforeNextRetry(AmazonWebServiceRequest originalRequest,
                    AmazonClientException exception,
                    int retriesAttempted)Returns the delay (in milliseconds) before next retry attempt. | 
public SDKDefaultBackoffStrategy()
public SDKDefaultBackoffStrategy(int baseDelay,
                                 int throttledBaseDelay,
                                 int maxBackoff)
public long computeDelayBeforeNextRetry(RetryPolicyContext context)
BackoffStrategycontext - Context about the state of the last request and information about the number of requests made.public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
RetryPolicy.BackoffStrategydelayBeforeNextRetry in interface RetryPolicy.BackoffStrategyoriginalRequest - The original request object being executed. For
            performance reason, this object is not a defensive copy,
            and caller should not attempt to modify its data.exception - The exception from the failed request, represented as an
            AmazonClientException object. There are two types of
            exception that will be passed to this method:
            retriesAttempted - The number of times the current request has been attempted
            (not including the next attempt after the delay).Copyright © 2019. All rights reserved.