Skip to content
Snippets Groups Projects
Commit 40a1de4b authored by Konstantin Belyavskiy's avatar Konstantin Belyavskiy
Browse files

Implement reconnection strategy class

Extend base Connection class to support a list of nodes and an
optional Strategy parameter to choose next item from this list.

Add built-in reconnect strategy class based on Round-Robin alg.
@params:
- addrs, list of maps {'host':(HOSTNAME|IP_ADDR), 'port':PORT}.

Return next connection or an error if all URIs are unavailable.

Closes #106
parent bd693f86
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment