Class | Qpid::Proton::Message |
In: |
lib/core/message.rb
|
Parent: | Object |
A Message represents an addressable quantity of data.
The message body can be set using the body= method. The message will then attempt to determine how exactly to encode the content.
To create a message for sending:
# send a simple text message msg = Qpid::Proton::Message.new msg.body = "STATE: update" # send a binary chunk of data data = File.binread("/home/qpid/binfile.tar.gz") msg = Qpid::Proton::Message.new msg.body = Qpid::Proton::BinaryString.new(data)
Assigns the value given to the named property.
Decodes a message from supplied AMQP data and returns the number of bytes consumed.
Returns the delivery count for the message.
This is the number of delivery attempts for the given message.
Sets the delivery count for the message.
See ::delivery_count for more details.
Sets whether this is the first time the message was acquired.
See ::first_acquirer? for more details.