Parent

ConnectionPool::Wrapper

Constants

METHODS

Public Class Methods

new(options = {}, &block) click to toggle source
# File lib/connection_pool.rb, line 84
def initialize(options = {}, &block)
  @pool = ::ConnectionPool.new(options, &block)
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/connection_pool.rb, line 98
def method_missing(name, *args, &block)
  @pool.with do |connection|
    connection.send(name, *args, &block)
  end
end
respond_to?(id, *args) click to toggle source
# File lib/connection_pool.rb, line 94
def respond_to?(id, *args)
  METHODS.include?(id) || @pool.with { |c| c.respond_to?(id, *args) }
end
with() click to toggle source
# File lib/connection_pool.rb, line 88
def with
  yield @pool.checkout
ensure
  @pool.checkin
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.