class documentation
class Message: (source)
Message objects are returned by a consumer, either by calling receive or
through a listener.
| Method | data |
Returns object typed bytes with the payload of the message. |
| Method | encryption |
Get the encryption context for this message or None if it's not encrypted. |
| Method | event |
Get the timestamp in milliseconds with the message event time. |
| Method | message |
The message ID that can be used to refer to this particular message. |
| Method | ordering |
Get the ordering key for the message. |
| Method | partition |
Get the partitioning key for the message. |
| Method | producer |
Get the producer name which produced this message |
| Method | properties |
Return the properties attached to the message. Properties are application-defined key/value pairs that will be attached to the message. |
| Method | publish |
Get the timestamp in milliseconds with the message publish time. |
| Method | redelivery |
Get the redelivery count for this message |
| Method | schema |
Get the schema version for this message |
| Method | topic |
Get the topic Name from which this message originated from |
| Method | value |
Returns object with the de-serialized version of the message content |
| Static Method | _wrap |
Undocumented |
| Instance Variable | _message |
Undocumented |
| Instance Variable | _schema |
Undocumented |
Get the encryption context for this message or None if it's not encrypted.
It should be noted that the result should not be accessed after the current Message instance is deleted.
The message ID that can be used to refer to this particular message.
| Returns | |
_pulsar.MessageId | A _pulsar.MessageId object that represents where the message is persisted. |
Return the properties attached to the message. Properties are application-defined key/value pairs that will be attached to the message.