Class: Legion::Transport::Queues::NodeStatus

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

Constant Summary

Constants included from Common

Common::NAMESPACE_BOUNDARIES

Instance Method Summary collapse

Methods inherited from Legion::Transport::Queue

#acknowledge, #default_options, #delete, #dlx_enabled, #dlx_exchange_name, #ensure_dlx, #initialize, #nack_or_dlq, #own_queue?, #passive?, #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



7
8
9
# File 'lib/legion/transport/queues/node_status.rb', line 7

def queue_name
  'node.status'
end

#queue_optionsObject



11
12
13
14
15
16
17
18
19
# File 'lib/legion/transport/queues/node_status.rb', line 11

def queue_options
  hash = {}
  hash[:manual_ack] = true
  hash[:durable] = true
  hash[:exclusive] = false
  hash[:block] = false
  hash[:arguments] = { 'x-dead-letter-exchange': 'node.dlx' }
  hash
end