module Sequel::ConnectionCheckoutEventCallbacks::TimedQueue

Attributes

on_checkout_event[RW]

The callback that is called with connection checkout events.

Private Instance Methods

available() click to toggle source
Calls superclass method
   # File lib/sequel/extensions/connection_checkout_event_callback.rb
88 def available
89   conn = super
90   @on_checkout_event.call(conn ? :immediately_available : :not_immediately_available)
91   conn
92 end
try_make_new() click to toggle source
Calls superclass method
   # File lib/sequel/extensions/connection_checkout_event_callback.rb
94 def try_make_new
95   conn = super
96   @on_checkout_event.call(:new_connection) if conn
97   conn
98 end
wait_until_available() click to toggle source
Calls superclass method
    # File lib/sequel/extensions/connection_checkout_event_callback.rb
100 def wait_until_available
101   timer = Sequel.start_timer
102   conn = super
103   @on_checkout_event.call(Sequel.elapsed_seconds_since(timer))
104   conn
105 end