DelayStrategyOptions
Represents all the options available for configuring a DelayStrategy.
See also
Functions
Applies jitter to a given duration based on a randomization factor.
A delay strategy that uses a constant backoff algorithm to calculate the next delay duration. The algorithm is based on the formula:
A delay strategy that uses a custom delay provider, which extends the behaviour of a CtxDelayStrategy, by allowing external control of the delay execution with optional state.
A delay strategy that uses a custom delay provider, which extends the behaviour of a DelayStrategy, by allowing external control of the delay execution with optional state.
A delay strategy that uses the exponential backoff algorithm to calculate the next delay duration. The algorithm is based on the formula:
A delay strategy that has no delay between attempts. Attempts are immediate and do not use any custom DelayProvider.
Converts a DelayStrategy into a CtxDelayStrategy using Unit as the context. This is useful when no additional context is needed, allowing the caller to avoid providing a Unit context. It maintains compatibility with the more general CtxDelayStrategy type.
Validates the constant delay parameters.
Validates the exponential delay parameters.