core/retry_policy library

Configurable retry policy with exponential back-off, jitter, and user-defined retry-eligibility predicates.

Classes

BackoffStrategy
Abstract interface for back-off strategies.
ConstantBackoff
Constant back-off: always waits the same duration.
ExponentialBackoff
Exponential back-off: baseDelay * 2^attempt, optionally jittered.
LinearBackoff
Linear back-off: baseDelay * (attempt + 1).
RetryPolicy
Defines how failed requests should be retried.