Class: Legion::Transport::Messages::CheckSubtask

Inherits:
Legion::Transport::Message show all
Defined in:
lib/legion/transport/messages/check_subtask.rb

Constant Summary

Constants inherited from Legion::Transport::Message

Legion::Transport::Message::ENVELOPE_KEYS

Constants included from Common

Common::NAMESPACE_BOUNDARIES

Instance Method Summary collapse

Methods inherited from Legion::Transport::Message

#app_id, #channel, #content_encoding, #content_type, #correlation_id, #encode_message, #encrypt?, #encrypt_message, #expiration, #headers, #initialize, max_payload_bytes, #message, #message_id, #persistent, #priority, #publish, #reply_to, #timestamp, #type, #user_id

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::Message

Instance Method Details

#exchangeObject



9
10
11
# File 'lib/legion/transport/messages/check_subtask.rb', line 9

def exchange
  Legion::Transport::Exchanges::Task
end

#exchange_nameObject



13
14
15
# File 'lib/legion/transport/messages/check_subtask.rb', line 13

def exchange_name
  'Legion::Transport::Exchanges::Task'
end

#routing_keyObject



17
18
19
# File 'lib/legion/transport/messages/check_subtask.rb', line 17

def routing_key
  'task.subtask.check'
end

#validateObject



21
22
23
# File 'lib/legion/transport/messages/check_subtask.rb', line 21

def validate
  @valid = true
end