Class: Shikibu::Notify::NoopNotifyListener

Inherits:
NotifyListener show all
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

Constructor Details

#initializeNoopNotifyListener



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

#startObject



32
33
34
# File 'lib/shikibu/notify/notify_base.rb', line 32

def start
  @connected = true
end

#stopObject



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