Class | Qpid::Proton::Message |
In: |
lib/core/message.rb
|
Parent: | Object |
Messsage data and headers that can sent or received on a {Link}
{body} is the main message content. {properties} is a {Hash} of extra properties that can be attached to the message.
@example Create a message containing a Unicode string
msg = Qpid::Proton::Message.new "this is a string"
@example Create a message containing binary data
msg = Qpid::Proton::Message.new msg.body = Qpid::Proton::BinaryString.new(File.binread("/home/qpid/binfile.tar.gz"))
PROTON_METHOD_PREFIX | = | "pn_message" | @private |
Decodes a message from AMQP binary data. @param encoded [String] the encoded bytes @return[Integer] 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.