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/driver.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/driver.py')
| -rw-r--r-- | python/qpid/messaging/driver.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py index 3712bdd221..d0f5b746f3 100644 --- a/python/qpid/messaging/driver.py +++ b/python/qpid/messaging/driver.py @@ -1057,6 +1057,10 @@ class Engine: mp.application_headers[TO] = msg.to if msg.durable: dp.delivery_mode = delivery_mode.persistent + if msg.priority is not None: + dp.priority = msg.priority + if msg.ttl is not None: + dp.ttl = msg.ttl enc, dec = get_codec(msg.content_type) body = enc(msg.content) def msg_acked(): @@ -1106,6 +1110,8 @@ class Engine: msg.reply_to = reply_to2addr(mp.reply_to) msg.correlation_id = mp.correlation_id msg.durable = dp.delivery_mode == delivery_mode.persistent + msg.priority = dp.priority + msg.ttl = dp.ttl msg.redelivered = dp.redelivered msg.properties = mp.application_headers msg.content_type = mp.content_type |
