Class: ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue

Inherits:
Queue
  • Object
show all
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

#num_waiting

Method Summary

Methods included from BiasableQueue

#with_a_bias_for

Methods inherited from Queue

#add, #any_waiting?, #clear, #delete, #initialize, #poll

Constructor Details

This class inherits a constructor from ActiveRecord::ConnectionAdapters::ConnectionPool::Queue