Static Methodsoto-core 7.4.0SotoCore
exponential(base:maxRetries:)
Retry with an exponentially increasing wait time between wait times
static func exponential(base: TimeAmount = .seconds(1), maxRetries: Int = 4) -> RetryPolicyFactory
Retry with an exponentially increasing wait time between wait times
static func exponential(base: TimeAmount = .seconds(1), maxRetries: Int = 4) -> RetryPolicyFactory
s8SotoCore18RetryPolicyFactoryV11exponential4base10maxRetriesAC7NIOCore10TimeAmountV_SitFZ
What are these?5TIKL
import SotoCore
struct RetryPolicyFactory
Creates a RetryPolicy for AWSClient to use
struct TimeAmount
Represents a time interval.
@frozen struct Int
A signed integer value type.
static var `default`: RetryPolicyFactory { get }
The default RetryPolicy returned by RetryPolicyFactory
static var noRetry: RetryPolicyFactory { get }
Retry controller that never returns a retry wait time
static func jitter(base: TimeAmount = .seconds(1), maxRetries: Int = 4) -> RetryPolicyFactory
Exponential jitter retry. Instead of returning an exponentially increasing retry time it returns a jittered version. In a heavy load situation where a large number of clients all hit the servers at the same time, jitter helps to smooth out the server response. See https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ for details.
let retryPolicy: RetryPolicy