Class: RoundRobinPolicy

policies/loadBalancing~RoundRobinPolicy()

This policy yield nodes in a round-robin fashion.

Constructor

new RoundRobinPolicy()

Source:

Extends

  • LoadBalancingPolicy

Methods

newQueryPlan(keyspace, executionOptions, callback)

Returns an iterator with the hosts to be used as coordinator for a query.

Parameters:
Name Type Description
keyspace String

Name of currently logged keyspace at Client level.

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: