Constructor
new TokenAwarePolicy(childPolicy)
Parameters:
| Name | Type | Description |
|---|---|---|
childPolicy |
LoadBalancingPolicy |
- Source:
Extends
- LoadBalancingPolicy
Methods
getOptions()
Gets an associative array containing the policy options.
- Source:
newQueryPlan(keyspace, executionOptions, callback)
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.
Parameters:
| Name | Type | Description |
|---|---|---|
keyspace |
String | Name of currently logged keyspace at |
executionOptions |
ExecutionOptions | null | The information related to the execution of the request. |
callback |
function | The function to be invoked with the error as first parameter and the host iterator as second parameter. |
- Source: