lib/oedipus/connection/pool.rb
# Initialize a new connection pool with the given options.
#
# @param [Hash] options
#   configuration for the pool
#
# @option [String] host
#   the host to use when allocating new connections
#
# @option [Fixnum] port
#   the port to use when allocating new connections
#
# @option [Fixnum] size
#   the maximum number of connections (defaults to 8)
#
# @option [Fixnum] ttl
#   the length of time for which any given connection should live
Initialize a new connection pool with the given options.
Initialize a new connection pool with the given options .
def release(instance)
        @lock.synchronize do
          @available << @used.delete(instance) if instance
          @condition.broadcast
        end
      end
def release ( instance ) @lock . synchronize do @available << @used . delete ( instance ) if instance @condition . broadcast end end
Initialize a new connection pool with the given options.
Initialize a new connection pool with the given options .
instance
<not_specific>
<not_specific>
ttl the length of time for which any given connection should live
ttl the length of time for which any given connection should live