Class: RosettaQueue::Gateway::EventedExchange::BaseExchange
- Inherits:
-
Object
- Object
- RosettaQueue::Gateway::EventedExchange::BaseExchange
show all
- Defined in:
- lib/rosetta_queue/adapters/amqp_evented.rb
Instance Method Summary
collapse
Constructor Details
#initialize(adapter_settings, options = {}) ⇒ BaseExchange
Returns a new instance of BaseExchange.
12
13
14
|
# File 'lib/rosetta_queue/adapters/amqp_evented.rb', line 12
def initialize(adapter_settings, options={})
@adapter_settings, @options = adapter_settings, options
end
|
Instance Method Details
#delete(destination) ⇒ Object
16
17
18
|
# File 'lib/rosetta_queue/adapters/amqp_evented.rb', line 16
def delete(destination)
conn.queue(destination).delete(@options)
end
|
#unsubscribe ⇒ Object
20
21
22
|
# File 'lib/rosetta_queue/adapters/amqp_evented.rb', line 20
def unsubscribe
@queue.unsubscribe if @queue
end
|