Class: ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue
- Inherits:
-
Queue
- Object
- Queue
- ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue
- Includes:
- BiasableQueue
- Defined in:
- lib/active_record/connection_adapters/abstract/connection_pool.rb
Overview
Connections must be leased while holding the main pool mutex. This is an internal subclass that also .leases
returned connections while still in queue’s critical section (queue synchronizes with the same @lock
as the main pool) so that a returned connection is already leased and there is no need to re-enter synchronized block.
Method Summary
Methods included from BiasableQueue
Methods inherited from Queue
#add, #any_waiting?, #clear, #delete, #initialize, #num_waiting, #poll
Constructor Details
This class inherits a constructor from ActiveRecord::ConnectionAdapters::ConnectionPool::Queue