A load balancing plan is used to determine the order of hosts for running queries, preparing statements and establishing connections.

Abstract
Plans returned by LoadBalancing::Policy#plan implementations don’t need to extend this class, only implement its methods. This class exists for documentation purposes only.

Inherits

Object

Methods

has_next?

Returns whether the plan contains any more hosts

Returns:
Type Details
Boolean whether the plan contains any more hosts

next

Returns next host to try

Returns:
Type Details
Cql::Host next host to try