@FunctionalInterface public interface BackoffStrategy
Modifier and Type | Method and Description |
---|---|
default int |
calculateExponentialDelay(int retriesAttempted,
Duration baseDelay,
Duration maxBackoffTime,
int maxRetries) |
Duration |
computeDelayBeforeNextRetry(RetryPolicyContext context)
Compute the delay before the next retry request.
|
static BackoffStrategy |
defaultStrategy() |
static BackoffStrategy |
none() |
Duration computeDelayBeforeNextRetry(RetryPolicyContext context)
context
- Context about the state of the last request and information about the number of requests made.default int calculateExponentialDelay(int retriesAttempted, Duration baseDelay, Duration maxBackoffTime, int maxRetries)
static BackoffStrategy defaultStrategy()
static BackoffStrategy none()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.