class Vault::ConnectionPool::Wrapper
Constants
- METHODS
Public Class Methods
new(options = {}, &block)
click to toggle source
# File lib/vault/vendor/connection_pool.rb, line 127 def initialize(options = {}, &block) @pool = ::ConnectionPool.new(options, &block) end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/vault/vendor/connection_pool.rb, line 143 def method_missing(name, *args, &block) with do |connection| connection.send(name, *args, &block) end end
pool_shutdown(&block)
click to toggle source
# File lib/vault/vendor/connection_pool.rb, line 135 def pool_shutdown(&block) @pool.shutdown(&block) end
respond_to?(id, *args)
click to toggle source
# File lib/vault/vendor/connection_pool.rb, line 139 def respond_to?(id, *args) METHODS.include?(id) || with { |c| c.respond_to?(id, *args) } end
with(&block)
click to toggle source
# File lib/vault/vendor/connection_pool.rb, line 131 def with(&block) @pool.with(&block) end