TokenAwarePolicy Class |
This policy encapsulates another policy. The resulting policy works in the following way:
Namespace: Dse
public class TokenAwarePolicy : ILoadBalancingPolicy
The TokenAwarePolicy type exposes the following members.
Name | Description | |
---|---|---|
TokenAwarePolicy |
Creates a new TokenAware policy that wraps the provided child
load balancing policy.
|
Name | Description | |
---|---|---|
ChildPolicy |
Name | Description | |
---|---|---|
Distance |
Return the HostDistance for the provided host.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize | ||
NewQueryPlan |
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 (i.e. mainly if IStatement.RoutingKey is not null). Following what it will return the plan of the child policy. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |