class TokenAwarePolicy
Augments
LoadBalancingPolicy
Constructor
new
TokenAwarePolicy
(LoadBalancingPolicy
childPolicy)
A wrapper load balancing policy that add token awareness to a child policy.
Methods
Returns the hosts to use for a new query. The returned plan will first return replicas (whose HostDistance for the child policy is local) for the query if it can determine them is not. Following what it will return the plan of the child policy.