diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-03-04 13:16:27 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-03-04 13:16:27 +0000 |
commit | 2b53c60cb0b6fadf8a37f1c19b6c7c7607398fcf (patch) | |
tree | c22cad76accce35a52b3f93d87e1f58416e05851 /python/qpid/messaging/message.py | |
parent | a039f33a2fe70549f1a91dc916a1b6d35b6c1da0 (diff) | |
download | qpid-python-2b53c60cb0b6fadf8a37f1c19b6c7c7607398fcf.tar.gz |
added priority and ttl message properties
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918978 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging/message.py')
-rw-r--r-- | python/qpid/messaging/message.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/qpid/messaging/message.py b/python/qpid/messaging/message.py index 1c7c7beb81..46494e428e 100644 --- a/python/qpid/messaging/message.py +++ b/python/qpid/messaging/message.py @@ -90,7 +90,8 @@ class Message: def __init__(self, content=None, content_type=UNSPECIFIED, id=None, subject=None, to=None, user_id=None, reply_to=None, - correlation_id=None, durable=None, properties=None): + correlation_id=None, durable=None, priority=None, ttl=None, + properties=None): """ Construct a new message with the supplied content. The content-type of the message will be automatically inferred from @@ -109,6 +110,8 @@ class Message: self.reply_to = reply_to self.correlation_id = correlation_id self.durable = durable + self.priority = priority + self.ttl = ttl self.redelivered = False if properties is None: self.properties = {} @@ -123,7 +126,7 @@ class Message: def __repr__(self): args = [] for name in ["id", "subject", "to", "user_id", "reply_to", - "correlation_id"]: + "correlation_id", "priority", "ttl"]: value = self.__dict__[name] if value is not None: args.append("%s=%r" % (name, value)) for name in ["durable", "properties"]: |