ILoadBalancingPolicyDistance Method |
The distance of an host influence how much connections are kept to the node (see HostDistance). A policy should assign a * LOCAL distance to nodes that are susceptible to be returned first by newQueryPlan and it is useless for newQueryPlan to return hosts to which it assigns an IGNORED distance.
The host distance is primarily used to prevent keeping too many connections to host in remote datacenters when the policy itself always picks host in the local datacenter first.
Namespace: Cassandra
HostDistance Distance( Host host )