Class: Shikibu::Notify::NoopNotifyListener
- Inherits:
-
NotifyListener
- Object
- NotifyListener
- Shikibu::Notify::NoopNotifyListener
- Defined in:
- lib/shikibu/notify/notify_base.rb
Overview
No-op implementation for SQLite/MySQL All methods are no-ops - polling-based updates only
Instance Method Summary collapse
- #connected? ⇒ Boolean
-
#initialize ⇒ NoopNotifyListener
constructor
A new instance of NoopNotifyListener.
- #start ⇒ Object
- #stop ⇒ Object
- #subscribe(_channel) ⇒ Object
- #unsubscribe(_channel) ⇒ Object
Constructor Details
#initialize ⇒ NoopNotifyListener
27 28 29 30 |
# File 'lib/shikibu/notify/notify_base.rb', line 27 def initialize super @connected = false end |
Instance Method Details
#connected? ⇒ Boolean
48 49 50 |
# File 'lib/shikibu/notify/notify_base.rb', line 48 def connected? @connected end |
#start ⇒ Object
32 33 34 |
# File 'lib/shikibu/notify/notify_base.rb', line 32 def start @connected = true end |
#stop ⇒ Object
36 37 38 |
# File 'lib/shikibu/notify/notify_base.rb', line 36 def stop @connected = false end |
#subscribe(_channel) ⇒ Object
40 41 42 |
# File 'lib/shikibu/notify/notify_base.rb', line 40 def subscribe(_channel, &) # No-op: callbacks will never be called end |
#unsubscribe(_channel) ⇒ Object
44 45 46 |
# File 'lib/shikibu/notify/notify_base.rb', line 44 def unsubscribe(_channel) # No-op end |