Class: Droid::ListenQueue

Inherits:
BaseQueue show all
Defined in:
lib/droid/queue.rb

Instance Attribute Summary

Attributes inherited from BaseQueue

#ex, #mq, #opts, #q, #queue_name

Instance Method Summary collapse

Methods inherited from BaseQueue

#destroy, #log, #setup, #subscribe, #tag, #teardown, #temp?

Constructor Details

#initialize(exchange_name, opts = {}) ⇒ ListenQueue

Returns a new instance of ListenQueue.



100
101
102
103
104
# File 'lib/droid/queue.rb', line 100

def initialize(exchange_name, opts={})
  opts[:exchange_name] = exchange_name
  queue_name = opts.delete(:queue) || Droid::Utils.generate_queue(exchange_name)
  super(queue_name, opts)
end