Class: Legion::Transport::Queues::Node

Inherits:
Legion::Transport::Queue show all
Defined in:
lib/legion/transport/queues/node.rb

Instance Method Summary collapse

Methods inherited from Legion::Transport::Queue

#acknowledge, #default_options, #delete, #initialize, #recreate_queue, #reject

Methods included from Common

#channel, #channel_open?, #close, #close!, #deep_merge, #generate_consumer_tag, #open_channel, #options_builder

Constructor Details

This class inherits a constructor from Legion::Transport::Queue

Instance Method Details

#queue_nameObject



5
6
7
# File 'lib/legion/transport/queues/node.rb', line 5

def queue_name
  "node.#{Legion::Settings['client']['name']}"
end

#queue_optionsObject



9
10
11
# File 'lib/legion/transport/queues/node.rb', line 9

def queue_options
  { durable: false, auto_delete: true, arguments: { 'x-dead-letter-exchange': 'node.dlx' } }
end