class TokenAwarePolicy
Augments
LoadBalancingPolicy
Constructor
new
TokenAwarePolicy
(LoadBalancingPolicy
childPolicy)
A wrapper load balancing policy that add token awareness to a child policy.
Methods
getOptions
()Gets an associative array containing the policy options.
Returns the hosts to use for a new query. The returned plan will return local replicas first, if replicas can be determined, followed by the plan of the child policy.