backoff/default.rs
1//! Constants for the exponential backoff policy.
2
3/// The default initial interval value in milliseconds (0.5 seconds).
4pub const INITIAL_INTERVAL_MILLIS: u64 = 500;
5/// The default randomization factor (0.5 which results in a random period ranging between 50%
6/// below and 50% above the retry interval).
7pub const RANDOMIZATION_FACTOR: f64 = 0.5;
8/// The default multiplier value (1.5 which is 50% increase per back off).
9pub const MULTIPLIER: f64 = 1.5;
10/// The default maximum back off time in milliseconds (1 minute).
11pub const MAX_INTERVAL_MILLIS: u64 = 60_000;
12/// The default maximum elapsed time in milliseconds (15 minutes).
13pub const MAX_ELAPSED_TIME_MILLIS: u64 = 900_000;