diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-03-23 14:57:28 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-03-23 14:57:28 +0000 |
commit | fe99d24c4084b2cb2479b820a5b44378d1812ffc (patch) | |
tree | 82dd1a8c229d9d86e266870769b6460fad7dd2e0 /python/qpid/messaging/endpoints.py | |
parent | 166b7426164e35992d43d88b5c9e61c0482a41bd (diff) | |
download | qpid-python-fe99d24c4084b2cb2479b820a5b44378d1812ffc.tar.gz |
Several updates to address options including:
- renamed node-properties to node
- added link to permit durable links (with names)
- split x-properties into x-declare, x-subscribe, and x-bindings
- removed automatic passthrough of unrecognized options (as this was confusing)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926604 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging/endpoints.py')
-rw-r--r-- | python/qpid/messaging/endpoints.py | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py index 53df51dfd8..af2b1a8007 100644 --- a/python/qpid/messaging/endpoints.py +++ b/python/qpid/messaging/endpoints.py @@ -295,14 +295,29 @@ class Session: create: <create-policy>, delete: <delete-policy>, assert: <assert-policy>, - node-properties: { + node: { type: <node-type>, durable: <node-durability>, - x-properties: { - bindings: ["<exchange>/<key>", ...], - <passthrough-key>: <passthrough-value> - } + x-declare: { ... <queue-declare overrides> ... } + x-bindings: [<binding_1>, ... <binding_n>] } + link: { + name: <link-name>, + durable: <link-durability>, + reliability: <link-reliability>, + x-declare: { ... <queue-declare overrides> ... } + x-bindings: [<binding_1>, ... <binding_n>] + x-subscribe: { ... <message-subscribe overrides> ... } + } + } + + Bindings are specified as a map with the following options:: + + { + exchange: <exchange>, + queue: <queue>, + key: <key>, + arguments: <arguments> } The create, delete, and assert policies specify who should perfom @@ -316,14 +331,12 @@ class Session: The node-type is one of: - I{topic}: a topic node will default to the topic exchange, - x-properties may be used to specify other exchange types + x-declare may be used to specify other exchange types - I{queue}: this is the default node-type - The x-properties map permits arbitrary additional keys and values to - be specified. These keys and values are passed through when creating - a node or asserting facts about an existing node. Any passthrough - keys and values that do not match a standard field of the underlying - exchange or queue declare command will be sent in the arguments map. + The x-declare map permits protocol specific keys and values to be + specified. These keys and values are passed through when creating a + node or asserting facts about an existing node. Examples -------- @@ -353,18 +366,18 @@ class Session: You can customize the properties of the queue:: - my-queue; {create: always, node-properties: {durable: True}} + my-queue; {create: always, node: {durable: True}} You can create a topic instead if you want:: - my-queue; {create: always, node-properties: {type: topic}} + my-queue; {create: always, node: {type: topic}} You can assert that the address resolves to a node with particular properties:: my-transient-topic; { assert: always, - node-properties: { + node: { type: topic, durable: False } |