class Freddy::Adapters::BunnyAdapter::Channel
Constants
- NO_ROUTE
Public Class Methods
new(channel)
click to toggle source
# File lib/freddy/adapters/bunny_adapter.rb, line 31 def initialize(channel) @channel = channel end
Public Instance Methods
on_no_route(&block)
click to toggle source
# File lib/freddy/adapters/bunny_adapter.rb, line 41 def on_no_route(&block) default_exchange.on_return do |return_info, properties, content| if return_info[:reply_code] == NO_ROUTE block.call(properties[:correlation_id]) end end end
queue(*args)
click to toggle source
# File lib/freddy/adapters/bunny_adapter.rb, line 37 def queue(*args) Queue.new(@channel.queue(*args)) end