module Elasticsearch::Transport::Transport::Connections::Selector::Base

@abstract Common functionality for connection selector implementations.

Attributes

connections[R]

Public Class Methods

new(arguments={}) click to toggle source

@option arguments [Connections::Collection] :connections Collection with connections.

# File lib/elasticsearch/transport/transport/connections/selector.rb, line 14
def initialize(arguments={})
  @connections = arguments[:connections]
end

Public Instance Methods

select(options={}) click to toggle source

@abstract Selector strategies implement this method to

select and return a connection from the pool.

@return [Connection]

# File lib/elasticsearch/transport/transport/connections/selector.rb, line 23
def select(options={})
  raise NoMethodError, "Implement this method in the selector implementation."
end