类 Bundler::ConnectionPool::Wrapper

常量

METHODS

公共类方法

new(options = {}, &block) 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 5
def initialize(options = {}, &block)
  @pool = options.fetch(:pool) { ::Bundler::ConnectionPool.new(options, &block) }
end

公共实例方法

method_missing(name, *args, **kwargs, &block) 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 35
def method_missing(name, *args, **kwargs, &block)
  with do |connection|
    connection.send(name, *args, **kwargs, &block)
  end
end
pool_available() 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 25
def pool_available
  @pool.available
end
pool_shutdown(&block) 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 17
def pool_shutdown(&block)
  @pool.shutdown(&block)
end
pool_size() 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 21
def pool_size
  @pool.size
end
respond_to?(id, *args) 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 29
def respond_to?(id, *args)
  METHODS.include?(id) || with { |c| c.respond_to?(id, *args) }
end
with(&block) 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 13
def with(&block)
  @pool.with(&block)
end
wrapped_pool() 点击切换源代码
# File bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb, line 9
def wrapped_pool
  @pool
end