SequenceBody Class
An AMQP message body of type Sequence. This represents a list of sequence sections.
- Inheritance
-
SequenceBody
Constructor
SequenceBody(c_message, encoding='UTF-8')
Parameters
- c_message
- encoding
Variables
- type
- MessageBodyType
The body type. This should always be SequenceType
- data
- <xref:Generator>[<xref:List>[object]]
The data contained in the message body. This returns a generator to iterate over each section in the body, where each section will be a list of objects.
Methods
| append |
Append a sequence section to the body. The data should be a list of objects. The object in the list can be any Python data type and it will be automatically encoded into an AMQP type. If a specific AMQP type is required, a types.AMQPType can be used. |
append
Append a sequence section to the body. The data should be a list of objects. The object in the list can be any Python data type and it will be automatically encoded into an AMQP type. If a specific AMQP type is required, a types.AMQPType can be used.
append(data)
Parameters
Attributes
data
Feedback
Submit and view feedback for