From b886305ef23cfa59754031637f50964228b965df Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Wed, 9 Jan 2013 18:10:05 +0000 Subject: Add connection.blocked and connection.unblocked extension methods --- amqp-rabbitmq-0.9.1.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/amqp-rabbitmq-0.9.1.json b/amqp-rabbitmq-0.9.1.json index 9e6d55e..847c8da 100644 --- a/amqp-rabbitmq-0.9.1.json +++ b/amqp-rabbitmq-0.9.1.json @@ -149,7 +149,13 @@ "synchronous" : true}, {"id": 51, "arguments": [], - "name": "close-ok"}], + "name": "close-ok"}, + {"id": 60, + "arguments": [{"type": "shortstr", "name": "reason", "default-value": ""}], + "name": "blocked"}, + {"id": 61, + "arguments": [], + "name": "unblocked"}], "name": "connection", "properties": [] }, -- cgit v1.2.1 From e708dbcb6a2b428d5d65551dc9257c692cc985ad Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Fri, 26 Apr 2013 13:38:53 +0100 Subject: Move credit to an extension. --- amqp-rabbitmq-0.9.1.json | 15 +------------- credit_extension.json | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 14 deletions(-) create mode 100644 credit_extension.json diff --git a/amqp-rabbitmq-0.9.1.json b/amqp-rabbitmq-0.9.1.json index dd15e97..ca19a37 100644 --- a/amqp-rabbitmq-0.9.1.json +++ b/amqp-rabbitmq-0.9.1.json @@ -415,20 +415,7 @@ "arguments": [{"type": "longlong", "name": "delivery-tag", "default-value": 0}, {"type": "bit", "name": "multiple", "default-value": false}, {"type": "bit", "name": "requeue", "default-value": true}], - "name": "nack"}, - {"id": 257, - "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""}, - {"type": "long", "name": "credit"}, - {"type": "bit", "name": "drain"}], - "name": "credit", - "synchronous" : true}, - {"id": 258, - "arguments": [{"type": "long", "name": "available"}], - "name": "credit-ok"}, - {"id": 259, - "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""}, - {"type": "long", "name": "credit-drained"}], - "name": "credit-drained"}], + "name": "nack"}], "name": "basic", "properties": [{"type": "shortstr", "name": "content-type"}, {"type": "shortstr", "name": "content-encoding"}, diff --git a/credit_extension.json b/credit_extension.json new file mode 100644 index 0000000..a9429a3 --- /dev/null +++ b/credit_extension.json @@ -0,0 +1,54 @@ +{ + "extension": { + "name": "credit", + "version": "0.1", + "status": [ + "This extension is used internally by the broker and plugins. ", + "It is NOT intended to be used by regular clients over the ", + "network. This extension is subject to change without notice; " + "hence you are strongly discouraged from building clients ", + "which use it."], + "copyright": [ + "Copyright (C) 2008-2013 VMware, Inc.\n", + "\n", + "Permission is hereby granted, free of charge, to any person\n", + "obtaining a copy of this file (the \"Software\"), to deal in the\n", + "Software without restriction, including without limitation the \n", + "rights to use, copy, modify, merge, publish, distribute, \n", + "sublicense, and/or sell copies of the Software, and to permit \n", + "persons to whom the Software is furnished to do so, subject to \n", + "the following conditions:\n", + "\n", + "The above copyright notice and this permission notice shall be\n", + "included in all copies or substantial portions of the Software.\n", + "\n", + "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n", + "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n", + "OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n", + "NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n", + "HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n", + "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n", + "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n", + "OTHER DEALINGS IN THE SOFTWARE.\n"] + }, + + "classes": [ + { + "id": 60, + "methods": [{"id": 200, + "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""}, + {"type": "long", "name": "credit"}, + {"type": "bit", "name": "drain"}], + "name": "credit", + "synchronous" : true}, + {"id": 201, + "arguments": [{"type": "long", "name": "available"}], + "name": "credit-ok"}, + {"id": 202, + "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""}, + {"type": "long", "name": "credit-drained"}], + "name": "credit-drained"}], + "name": "basic" + } + ] +} -- cgit v1.2.1 -- cgit v1.2.1