Package qpid :: Module api :: Class Message
[frames] | no frames]

Class Message

A message consists of a standard set of fields, an application defined set of properties, and some content.

Instance Methods
 
__init__(self, content=None)
Construct a new message with the supplied content.
 
__repr__(self)
Instance Variables
str, unicode, buffer, dict, list content
the message content
str content_type
the content-type of the message
str correlation_id
a correlation-id for the message
str id
the message id
dict properties
application specific message properties
??? reply_to
???
??? to
???
??? user_id
the user-id of the message producer
Method Details

__init__(self, content=None)
(Constructor)

 

Construct a new message with the supplied content. The content-type of the message will be automatically inferred from type of the content parameter.

Parameters:
  • content (str, unicode, buffer, dict, list) - the message content