class RubyRabbitmqJanus::Rabbit::Publisher::Keepalive
@author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
# Publish message for keepalive thread
The name to queue it's created automatically by Bunny GEM
@see KeepaliveThread
Attributes
reply[R]
Public Class Methods
new(exchange)
click to toggle source
Calls superclass method
RubyRabbitmqJanus::Rabbit::Publisher::Base::new
# File lib/rrj/rabbit/publisher/keepalive.rb, line 14 def initialize(exchange) @reply = exchange.queue('', exclusive: true) super(exchange) subscribe_to_queue end
Public Instance Methods
publish(request)
click to toggle source
Calls superclass method
RubyRabbitmqJanus::Rabbit::Publisher::Base#publish
# File lib/rrj/rabbit/publisher/keepalive.rb, line 20 def publish(request) super(request) return_response end