Contents
- Usage page
-
API docs index
-
Cassandra module
- AddressResolution module
- Auth module
- Compression module
- Error module
- Errors module
- Execution module
- LoadBalancing module
- Reconnection module
- Retry module
- Statement module
- Statements module
- Cluster class
- Column class
- Future class
- Host class
- Keyspace class
- Listener class
- Result class
- Session class
- Table class
- TimeUuid class
- Uuid class
-
Cassandra module
Inherits
Includes
MonitorMixin
Methods
Adds this host to rotation
- Parameters:
-
Name Type Details host Hosta host instance - Returns:
-
Type Details LoadBalancing::Policies::RoundRobinself - See Also:
Removes this host from rotation
- Parameters:
-
Name Type Details host Hosta host instance - Returns:
-
Type Details LoadBalancing::Policies::RoundRobinself - See Also:
Noop
- Parameters:
-
Name Type Details host Hosta host instance - Returns:
-
Type Details LoadBalancing::Policies::RoundRobinself - See Also:
Noop
- Parameters:
-
Name Type Details host Hosta host instance - Returns:
-
Type Details LoadBalancing::Policies::RoundRobinself - See Also:
Returns distance to host. All hosts in rotation are considered
:local, all other hosts - :ignore.
- Parameters:
-
Name Type Details host Hosta host instance - Returns:
-
Type Details Symbol:localfor all hosts in rotation and:ignorefor all other hosts. - See Also:
Returns a load balancing plan that rotates hosts by 1 each time a plan is requested.
- Parameters:
-
Name Type Details keyspace Stringcurrent keyspace of the Sessionstatement Statementactual statement to be executed options Execution::Optionsexecution options to be used - Returns:
-
Type Details LoadBalancing::Plana rotated load balancing plan - See Also:
