RetryPolicyFactory
public struct RetryPolicyFactory
Creates a RetryPolicy for AWSClient to use
-
Declaration
Swift
public let retryPolicy: RetryPolicy
-
The default RetryPolicy returned by RetryPolicyFactory
Declaration
Swift
public static var `default`: RetryPolicyFactory { get }
-
Retry controller that never returns a retry wait time
Declaration
Swift
public static var noRetry: RetryPolicyFactory { get }
-
Retry with an exponentially increasing wait time between wait times
Declaration
Swift
public static func exponential(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.
Declaration
Swift
public static func jitter(base: TimeAmount = .seconds(1), maxRetries: Int = 4) -> RetryPolicyFactory