Class: Amalgalite::BusyHandler
- Inherits:
-
Object
- Object
- Amalgalite::BusyHandler
- Defined in:
- lib/amalgalite/busy_timeout.rb
Overview
A base class for use in creating your own busy handler classes
Direct Known Subclasses
Instance Method Summary collapse
-
#arity ⇒ Object
the arity of the call method.
-
#call(count) ⇒ Object
Override this method, returning
false
if the SQLite should return SQLITE_BUSY for all parties involved in the lock, and anything else if the lock attempt should be tried again. - #to_proc ⇒ Object
Instance Method Details
#arity ⇒ Object
the arity of the call method
11 |
# File 'lib/amalgalite/busy_timeout.rb', line 11 def arity() 1 ; end |
#call(count) ⇒ Object
Override this method, returning false
if the SQLite should return SQLITE_BUSY for all parties involved in the lock, and anything else if the lock attempt should be tried again.
17 18 19 |
# File 'lib/amalgalite/busy_timeout.rb', line 17 def call( count ) raise NotImplementedError, "The busy handler call(N) method must be implemented" end |
#to_proc ⇒ Object
6 7 8 |
# File 'lib/amalgalite/busy_timeout.rb', line 6 def to_proc self end |