Click or drag to resize

TokenAwarePolicy Methods

The TokenAwarePolicy type exposes the following members.

Methods
  NameDescription
Public methodDistance
Return the HostDistance for the provided host.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Public methodNewQueryPlan
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.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also