Class: RubyRabbitmqJanus::Rabbit::Publisher::NonExclusive
- Defined in:
- lib/rrj/rabbit/publisher/non_exclusive.rb
Overview
Publish message in queue non exclusive. By default “to-janus”. This an option in config to this gem.
Instance Attribute Summary
Attributes inherited from BaseEvent
Instance Method Summary collapse
-
#initialize(exchange) ⇒ NonExclusive
constructor
Define an publisher for create non exclusive queue.
-
#publish(request) ⇒ Object
Send an message to queue.
Constructor Details
#initialize(exchange) ⇒ NonExclusive
Define an publisher for create non exclusive queue
12 13 14 15 |
# File 'lib/rrj/rabbit/publisher/non_exclusive.rb', line 12 def initialize(exchange) @reply = exchange.queue(Tools::Config.instance.queue_from) super(exchange) end |
Instance Method Details
#publish(request) ⇒ Object
Send an message to queue
rubocop:disable Lint/UselessMethodDefinition
22 23 24 |
# File 'lib/rrj/rabbit/publisher/non_exclusive.rb', line 22 def publish(request) super(request) end |