Returns the current cluster size.
Returns the current cluster size.
This counter modulo the cluster size is used to pick a member of the cluster to send leader messages.
This counter modulo the cluster size is used to pick a member of the cluster to send leader messages. If we get back a response that the node isn't the leader the driver will increment the counter to try the next node.
override for tests
override for tests
Returns an ActorSelection mapped to the passed cluster membership index.
Returns an ActorSelection mapped to the passed cluster membership index. This is abstract so that there can be a subclass which knows about cluster membership changes. Counter can be incremented to round-robin to find the new stable leader.
The index of the node in the cluster to resolve. Usually computed as counter%size
Send a message to the cluster
Send a message to the cluster
A counter which is used to pick a node to transmit to.
A request to send.
A concrete driver which uses akka.tcp to send messages. FIXME Note akka documentation says that akka.tcp is not firewall friendly.