Class: Plugin::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/plugin/base.rb

Direct Known Subclasses

Pulsar

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Returns a new instance of Base.



3
4
5
6
# File 'lib/plugin/base.rb', line 3

def initialize(client)
  @client = client
  @subscription_mode = ::Mqjob.config.subscription_mode
end

Instance Method Details

#close_listenObject



12
# File 'lib/plugin/base.rb', line 12

def close_listen; end

#close_publishObject



13
# File 'lib/plugin/base.rb', line 13

def close_publish; end

#listen(topic, worker, opts = {}) ⇒ Object



8
# File 'lib/plugin/base.rb', line 8

def listen(topic, worker, opts = {}); end

#publish(topic, msg, opts = {}) ⇒ Object



10
# File 'lib/plugin/base.rb', line 10

def publish(topic, msg, opts = {}); end