class HealthyPools::Wrapper
Constants
- METHODS
Public Class Methods
new(options = {}, &block)
click to toggle source
# File lib/healthy_pools.rb, line 132 def initialize(options = {}, &block) @pool = options.fetch(:pool) { ::HealthyPools.new(options, &block) } end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/healthy_pools.rb, line 156 def method_missing(name, *args, &block) with do |connection| connection.send(name, *args, &block) end end
pool_available()
click to toggle source
# File lib/healthy_pools.rb, line 148 def pool_available @pool.available end
pool_shutdown(&block)
click to toggle source
# File lib/healthy_pools.rb, line 140 def pool_shutdown(&block) @pool.shutdown(&block) end
pool_size()
click to toggle source
# File lib/healthy_pools.rb, line 144 def pool_size @pool.size end
respond_to?(id, *args)
click to toggle source
# File lib/healthy_pools.rb, line 152 def respond_to?(id, *args) METHODS.include?(id) || with { |c| c.respond_to?(id, *args) } end
with(&block)
click to toggle source
# File lib/healthy_pools.rb, line 136 def with(&block) @pool.with(&block) end