module Elasticsearch::Transport::Transport::Connections::Selector::Base
@abstract Common functionality for connection selector implementations.
Attributes
Public Class Methods
Source
# File lib/elasticsearch/transport/transport/connections/selector.rb, line 14 def initialize(arguments={}) @connections = arguments[:connections] end
@option arguments [Connections::Collection] :connections Collection
with connections.
Public Instance Methods
Source
# File lib/elasticsearch/transport/transport/connections/selector.rb, line 23 def select(options={}) raise NoMethodError, "Implement this method in the selector implementation." end
@abstract Selector
strategies implement this method to
select and return a connection from the pool.
@return [Connection]