Class: RosettaQueue::Gateway::SynchExchange::BaseExchange

Inherits:
Object
  • Object
show all
Defined in:
lib/rosetta_queue/adapters/amqp_synch.rb

Direct Known Subclasses

DirectExchange, FanoutExchange

Instance Method Summary collapse

Constructor Details

#initialize(adapter_settings, options = {}) ⇒ BaseExchange

Returns a new instance of BaseExchange.



11
12
13
# File 'lib/rosetta_queue/adapters/amqp_synch.rb', line 11

def initialize(adapter_settings, options={})
  @adapter_settings, @options = adapter_settings, options
end

Instance Method Details

#delete(destination, options = {}) ⇒ Object



15
16
17
# File 'lib/rosetta_queue/adapters/amqp_synch.rb', line 15

def delete(destination, options={})
  conn.queue(destination).delete(options)
end

#unsubscribeObject



19
20
21
# File 'lib/rosetta_queue/adapters/amqp_synch.rb', line 19

def unsubscribe
  conn.stop
end