pyignite.connection.generators module¶
-
class
pyignite.connection.generators.
RoundRobin
(nodes: list, max_reconnects: int = None)¶ Bases:
object
Round-robin generator for use with Client.connect(). Cycles a node list until a maximum number of reconnects is reached (if set).
-
__init__
(nodes: list, max_reconnects: int = None)¶ Parameters: - nodes – list of two-tuples of (host, port) format,
- max_reconnects – (optional) maximum number of reconnect attempts. defaults to None (cycle nodes infinitely).
-