class LoadBalancingPolicy
Constructor
new
LoadBalancingPolicy
()Base class for Load Balancing Policies
Methods
getDistance
(Host
host)
Returns the distance assigned by this policy to the provided host.
getOptions
()Gets an associative array containing the policy options.
Initializes the load balancing policy, called after the driver obtained the information of the cluster.
Returns an iterator with the hosts for a new query. Each new query will call this method. The first host in the result will then be used to perform the query.