Skip to main content

RedisEventReconnectPolicy

Type Alias RedisEventReconnectPolicy 

Source
pub type RedisEventReconnectPolicy = EventReconnectPolicy;
Expand description

Backwards-compatible name for the shared event reconnect policy.

Aliased Type§

pub struct RedisEventReconnectPolicy {
    pub initial_delay: Duration,
    pub max_delay: Duration,
    pub stable_reset_after: Duration,
    pub jitter_min_percent: u16,
    pub jitter_max_percent: u16,
}

Fields§

§initial_delay: Duration

Initial reconnect delay.

§max_delay: Duration

Maximum reconnect delay.

§stable_reset_after: Duration

Stable connection duration after which the attempt counter resets.

§jitter_min_percent: u16

Minimum jitter percentage applied to the selected delay.

§jitter_max_percent: u16

Maximum jitter percentage applied to the selected delay.