Message class.
Base class for received messages.
The message has already been acknowledged.
Acknowledge this message as being processed., This will remove the message from the queue.
Raises MessageStateError: | |
---|---|
If the message has already been acknowledged/requeued/rejected. |
Set to true if the message has been acknowledged.
Deserialize the message body, returning the original python structure sent by the publisher.
The decoded message body.
Reject this message.
The message will be discarded by the server.
Raises MessageStateError: | |
---|---|
If the message has already been acknowledged/requeued/rejected. |
Reject this message and put it back on the queue.
You must not use this method as a means of selecting messages to process.
Raises MessageStateError: | |
---|---|
If the message has already been acknowledged/requeued/rejected. |