Inherits

Includes

  • MonitorMixin

Methods

self.

new

(datacenter = nil, max_remote_hosts_to_use = 0, use_remote_hosts_for_local_consistency = false)

Returns a new instance of DCAwareRoundRobin

host_up

(host)

host_down

(host)

host_found

(host)

host_lost

(host)

distance

(host)

plan

(keyspace, statement, options)
Specifications:
DCAwareRoundRobin#plan prioritizes hosts first
5.times do
              host = plan.next
              expect(policy.distance(host)).to eq(:local)
            end