Skip to content

Commit 29aea10

Browse files
author
Alexandru Scvortov
committed
un-deprecate exchange.declare{auto-delete} in XML
1 parent 750cd77 commit 29aea10

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

docs/specs/amqp0-9-1.stripped.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
218218
<field name="type" domain="shortstr"/>
219219
<field name="passive" domain="bit"/>
220220
<field name="durable" domain="bit"/>
221-
<field name="reserved-2" type="bit" reserved="1"/>
221+
<field name="auto-delete" domain="bit"/>
222222
<field name="reserved-3" type="bit" reserved="1"/>
223223
<field name="no-wait" domain="no-wait"/>
224224
<field name="arguments" domain="table"/>

docs/specs/amqp0-9-1.xml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
confirm.select and confirm.select-ok,
77
exchange.bind and exchange.bind-ok,
88
exchange.unbind and exchange.unbind-ok,
9-
basic.nack
10-
and the ability for the Server to send basic.ack, basic.nack and
11-
basic.cancel to the client.
9+
basic.nack,
10+
the ability for the Server to send basic.ack, basic.nack and
11+
basic.cancel to the client, and
12+
the un-deprecation of exchange.declare{auto-delete}
1213
-->
1314

1415
<!--
@@ -1267,7 +1268,29 @@
12671268
</rule>
12681269
</field>
12691270

1270-
<!-- Deprecated: "auto-delete", must be zero -->
1271+
<field name = "auto-delete" domain = "bit" label = "auto-delete when unused">
1272+
<doc>
1273+
If set, the exchange is deleted when all queues have
1274+
finished using it.
1275+
</doc>
1276+
<rule name = "amq_exchange_02" implement = "SHOULD">
1277+
<doc>
1278+
The server SHOULD allow for a reasonable delay between the
1279+
point when it determines that an exchange is not being
1280+
used (or no longer used), and the point when it deletes
1281+
the exchange. At the least it must allow a client to
1282+
create an exchange and then bind a queue to it, with a
1283+
small but non-zero delay between these two actions.
1284+
</doc>
1285+
</rule>
1286+
<rule name = "amq_exchange_25" implement = "MUST">
1287+
<doc>
1288+
The server MUST ignore the auto-delete field if the
1289+
exchange already exists.
1290+
</doc>
1291+
</rule>
1292+
</field>
1293+
12711294
<field name = "reserved-2" type = "bit" reserved = "1" />
12721295
<!-- Deprecated: "internal", must be zero -->
12731296
<field name = "reserved-3" type = "bit" reserved = "1" />

0 commit comments

Comments
 (0)