class RubyRabbitmqJanus::Rabbit::Publisher::NonExclusive
@author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
Publish message in queue non exclusive. By default “to-janus”. This an option in config to this gem.
Public Class Methods
new(exchange)
click to toggle source
Define an publisher for create non exclusive queue
Calls superclass method
RubyRabbitmqJanus::Rabbit::Publisher::Base::new
# File lib/rrj/rabbit/publisher/non_exclusive.rb, line 12 def initialize(exchange) @reply = exchange.queue(Tools::Config.instance.queue_from) super(exchange) end
Public Instance Methods
publish(request)
click to toggle source
Send an message to queue
@param [String] request JSON request sending to rabbitmq queue
rubocop:disable Lint/UselessMethodDefinition
Calls superclass method
RubyRabbitmqJanus::Rabbit::Publisher::Base#publish
# File lib/rrj/rabbit/publisher/non_exclusive.rb, line 22 def publish(request) super(request) end