Module: Pools

Defined in:
lib/pools/handler.rb,
lib/pools/pooled.rb,
lib/pools/middleware.rb,
lib/pools/connection_pool.rb

Overview

This file adapted from activerecord gem

Defined Under Namespace

Modules: Pooled Classes: ConnectionPool, Handler, Middleware

Constant Summary collapse

ConnectionNotEstablished =

Raised when a connection could not be obtained within the connection acquisition timeout period.

Class.new(StandardError)
ConnectionTimeoutError =
Class.new(ConnectionNotEstablished)

Class Method Summary collapse

Class Method Details

.handlerObject



59
60
61
# File 'lib/pools/handler.rb', line 59

def self.handler
  @@pool_handler ||= Handler.new
end