lib/logstash/inputs/patch.rb
# Returns the next connection from the collection, rotating them in round-robin fashion.
#
# @return [Connections::Connection]
#
Returns the next connection from the collection, rotating them in round-robin fashion.
Returns the next connection from the collection rotating them in round - robin fashion .
def select(options={})
                @mutex.synchronize do
                  conns = connections
                  if @current && (@current < conns.size-1)
                    @current += 1
                  else
                    @current = 0
                  end
                  conns[@current]
                end
              end
def select ( options = { } ) @mutex . synchronize do conns = connections if @current && ( @current < conns . size - 1 ) @current += 1 else @current = 0 end conns [ @current ] end end
Returns the next connection from the collection, rotating them in round-robin fashion.
Returns the next connection from the collection rotating them in round - robin fashion .
None
Connections::Connection
options