Open
Description
Currently when a connection breaks we attempt to reconnect with a fixed 8 second cooldown.
Reconnection strategy should be configurable by the user.
DataStax Java Driver has a configurable reconnection policy, we should implement something similar in this driver.
ReconnectPolicy
could be a trait and a Box<dyn ReconnectPolicy>
could be included in SessionConfig
and ConnectionConfig
. Then ConnectionKeeperWorker
would use it to decide when to schedule reconnect attempts.