Class: ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue
- Includes:
- BiasableQueue
- Defined in:
- activerecord/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.
Instance Attribute Summary
Attributes inherited from Queue
Method Summary
Methods included from BiasableQueue
Methods inherited from Queue
#add, #any_waiting?, #clear, #delete, #initialize, #poll
Constructor Details
This class inherits a constructor from ActiveRecord::ConnectionAdapters::ConnectionPool::Queue