Inherits
Includes
Methods
Returns a new instance of RoundRobin
Adds this host to rotation
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
-
Returns:
-
- See Also:
-
- Specifications:
-
-
RoundRobin#host_up adds the host to the rotation
policy.host_up(host)
plan = policy.plan(keyspace, statement, options)
expect(plan).to have_next
expect(plan.next).to eq(host)
Removes this host from rotation
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
-
Returns:
-
- See Also:
-
- Specifications:
-
-
RoundRobin#host_down removes the host from the rotation
policy.host_up(host)
policy.host_down(host)
plan = policy.plan(keyspace, statement, options)
expect(plan).to_not have_next
Noop
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
-
Returns:
-
- See Also:
-
Noop
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
-
Returns:
-
- See Also:
-
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:
-
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:
-
- See Also:
-