Attributes of the message.
Return the body as one byte array.
Return the body as one byte array. If the message was received, this method returns the only part, without any copying; otherwise, the parts are copied into a single array.
Length of the body, in bytes.
Return the parts that form the body of the message.
Return the parts that form the body of the message. The body is represented internally as a scala.collection.Seq of mot.util.ByteArray instances. In the wire, the arrays are concatenated and the receiving side cannot see the original segmentation. The segmentation of the body is useful for constructing message from various parts without having the copy to one contiguous array. The incoming messages always have one part.
Return the first attribute that has the name passed as an argument.
Return the body (originally a byte array) converted to a string using the mot.Message.defaultEncoding.
Return the body (originally a byte array) converted to a string using the mot.Message.defaultEncoding. If the message was received, this method returns the only part, without any copying; otherwise, the parts are copied into a single array.
Return the first attribute that has the name passed as an argument and then convert it to a string using mot.Message.defaultEncoding.
A Mot message. This class represents Mot messages, either outgoing or incoming. In order to construct an instance, one of the factory methods of the companion object must be used.