Class: AdvancedConnection::ActiveRecordExt::ConnectionPool::Queues::OldAgeBiased
- Inherits:
-
AgeSorted
- Object
- ActiveRecord::ConnectionAdapters::ConnectionPool::Queue
- Default
- AgeSorted
- AdvancedConnection::ActiveRecordExt::ConnectionPool::Queues::OldAgeBiased
- Defined in:
- lib/advanced_connection/active_record_ext/connection_pool/queues.rb
Instance Method Summary collapse
Methods inherited from AgeSorted
Methods inherited from Default
Instance Method Details
#remove ⇒ Object
57 58 59 60 61 |
# File 'lib/advanced_connection/active_record_ext/connection_pool/queues.rb', line 57 def remove # Think of this like a stack, sorted youngest to oldest, bottom to top. To to # aquire the oldest entry, we pop it off the top (i.e., the last element) @queue.pop end |