qbits.alia.policy.reconnection

Policy that decides how often the reconnection to a dead node is attempted.

constant-reconnection-policy

(constant-reconnection-policy constant-delay-ms)

A reconnection policy that waits a constant time between each reconnection attempt.

exponential-reconnection-policy

(exponential-reconnection-policy base-delay-ms max-delay-ms)

A reconnection policy that waits exponentially longer between each reconnection attempt (but keeps a constant delay once a maximum delay is reached).

make

multimethod

map->constant-reconnection-policy

(map->constant-reconnection-policy {:keys [constant-delay-ms]})

map->exponential-reconnection-policy

(map->exponential-reconnection-policy {:keys [base-delay-ms max-delay-ms]})