Class: Cassandra::LoadBalancing::Plan Abstract
- Inherits:
-
Object
- Object
- Cassandra::LoadBalancing::Plan
- 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
-
#has_next? ⇒ Boolean
Whether the plan contains any more hosts.
-
#next ⇒ Cql::Host
Next host to try.
Instance Method Details
#has_next? ⇒ Boolean
Returns whether the plan contains any more hosts.
97 98 |
# File 'lib/cassandra/load_balancing.rb', line 97 def has_next? end |
#next ⇒ Cql::Host
Returns next host to try.
101 102 |
# File 'lib/cassandra/load_balancing.rb', line 101 def next end |