class DCAwareRoundRobinPolicy
Augments
LoadBalancingPolicy
Members
Array localHostsArray
Constructor
new
DCAwareRoundRobinPolicy
([?String localDc])
A data-center aware Round-robin load balancing policy. This policy provides round-robin queries over the nodes of the local data center.
Methods
getDistance
(Host host)
Returns the distance depending on the datacenter.
getOptions
()Gets an associative array containing the policy options.
It returns an iterator that yields local nodes.