Class: ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue
- Includes:
- BiasableQueue
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.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