message Module

Classes

BatchMessage

A Batched AMQP message.

This batch message encodes multiple message bodies into a single message to increase through-put over the wire. It requires server-side support to unpackage the batched messages and so will not be universally supported.

DataBody

An AMQP message body of type Data. This represents a list of bytes sections.

Message

An AMQP message.

When sending, if body type information is not provided, then depending on the nature of the data, different body encoding will be used. If the data is str or bytes, a single part DataBody will be sent. If the data is a list of str/bytes, a multipart DataBody will be sent. Any other type of list or any other type of data will be sent as a ValueBody. An empty payload will also be sent as a ValueBody. If body type information is provided, then the Message will use the given body type to encode the data or raise error if the data doesn't match the body type.

MessageBody

Base class for an AMQP message body. This should not be used directly.

MessageHeader

The Message header. This is only used on received message, and not set on messages being sent. The properties set on any given message will depend on the Service and not all messages will have all properties.

MessageProperties

Message properties. The properties that are actually used will depend on the service implementation. Not all received messages will have all properties, and not all properties will be utilized on a sent message.

SequenceBody

An AMQP message body of type Sequence. This represents a list of sequence sections.

ValueBody

An AMQP message body of type Value. This represents a single encoded object.