Class: ActiveMessaging::Adapters::Adapter::Message

Inherits:
BaseMessage
  • Object
show all
Defined in:
lib/activemessaging/adapters/wmq.rb

Overview

Message class needed by a13g (based on the same Message class in Stomp adapter) Contains a reference to the MQ message object ;-) !

Instance Attribute Summary collapse

Attributes inherited from BaseMessage

#body, #destination, #headers, #id

Instance Method Summary collapse

Methods inherited from BaseMessage

#dup, #matches_subscription?, #to_s

Constructor Details

#initialize(wmq_message, q_name) ⇒ Message

Returns a new instance of Message.



152
153
154
155
# File 'lib/activemessaging/adapters/wmq.rb', line 152

def initialize(wmq_message, q_name)
  super(wmq_message.data, wmq_message.descriptor[:msg_id], {'destination' => q_name}, q_name)
  @wmq_message = wmq_message
end

Instance Attribute Details

#wmq_messageObject

Returns the value of attribute wmq_message.



150
151
152
# File 'lib/activemessaging/adapters/wmq.rb', line 150

def wmq_message
  @wmq_message
end