Inherits

Includes

  • MonitorMixin

Methods

self.

new

Returns a new instance of RoundRobin

host_up

(host)

Adds this host to rotation

Parameters:
Name Type Details
host Host a host instance
Returns:
Type Details
LoadBalancing::Policies::RoundRobin self
See Also:

host_down

(host)

Removes this host from rotation

Parameters:
Name Type Details
host Host a host instance
Returns:
Type Details
LoadBalancing::Policies::RoundRobin self
See Also:

host_found

(host)

Noop

Parameters:
Name Type Details
host Host a host instance
Returns:
Type Details
LoadBalancing::Policies::RoundRobin self
See Also:

host_lost

(host)

Noop

Parameters:
Name Type Details
host Host a host instance
Returns:
Type Details
LoadBalancing::Policies::RoundRobin self
See Also:

distance

(host)

Returns distance to host. All hosts in rotation are considered :local, all other hosts - :ignore.

Parameters:
Name Type Details
host Host a host instance
Returns:
Type Details
Symbol :local for all hosts in rotation and :ignore for all other hosts.
See Also:

plan

(keyspace, statement, options)

Returns a load balancing plan that rotates hosts by 1 each time a plan is requested.

Parameters:
Name Type Details
keyspace String current keyspace of the Session
statement Statement actual statement to be executed
options Execution::Options execution options to be used
Returns:
Type Details
LoadBalancing::Plan a rotated load balancing plan
See Also: