Class: Cassandra::LoadBalancing::Plan Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra/load_balancing.rb

Overview

This class is abstract.

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

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

Instance Method Summary collapse

Instance Method Details

#has_next?Boolean

Returns whether the plan contains any more hosts.

Returns:

  • (Boolean)

    whether the plan contains any more hosts



97
98
# File 'lib/cassandra/load_balancing.rb', line 97

def has_next?
end

#nextCql::Host

Returns next host to try.

Returns:

  • (Cql::Host)

    next host to try



101
102
# File 'lib/cassandra/load_balancing.rb', line 101

def next
end