Class: ElmerFudd::TopicHandler

Inherits:
DirectHandler show all
Defined in:
lib/ElmerFudd/topic_handler.rb

Instance Attribute Summary

Attributes inherited from DirectHandler

#call_reply_content_type, #route

Instance Method Summary collapse

Methods inherited from DirectHandler

#call, #ensure_that_queue_exists, #initialize, #queue

Methods included from Filter

#call_next

Constructor Details

This class inherits a constructor from ElmerFudd::DirectHandler

Instance Method Details

#exchange(env) ⇒ Object



3
4
5
6
# File 'lib/ElmerFudd/topic_handler.rb', line 3

def exchange(env)
  env.logger.debug "ElmerFudd TopicHandler.exchange queue_name: #{@route.queue_name}, exchange_name: #{@route.exchange_name}, filters: #{filters_names}"
  env.channel.topic(@route.exchange_name, durable: false, internal: false, autodelete: false)
end