Expand description
Contains retry utilities.
Structs§
- Exponential
Backoff Retry Policy - The exponential backoff strategy is a retry approach that doubles the delay between retries. A combined exponential backoff and jitter strategy is recommended that is “Exponential Backoff and Jitter”. This is helpful to avoid Thundering Herd Problem.
- Filtered
Retry Policy - Decorates the given
RetryPolicyby not retrying on errors that match the given function. - Jittered
Retry Policy - Decorates the given
RetryPolicyand adds jitter (random delay) to it. This can make retries more spread out and less likely to all fail at once. - MaxAttempts
Retry Policy - Decorates the given
RetryPolicyto respect the given maximum attempts. - MaxTotal
Delay Retry Policy - Decorates the given
RetryPolicyto respect the given maximum total delay. - Retry
Context - Represents the context of a retry operation.
Traits§
- Retry
Policy - Provides the logic for how and when to perform retries.
Functions§
- retry
- A function that performs and retries the given operation according to a retry policy.