NO-JIRA clarify expiry config doc

This commit is contained in:
Justin Bertram 2024-05-20 15:08:53 -05:00 committed by GitHub
parent a88eba2bdb
commit 7067b75670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -91,6 +91,18 @@ Expiry address are defined in the address-setting configuration:
If messages are expired and no expiry address is specified, messages are simply removed from the queue and dropped.
Address xref:wildcard-syntax.adoc#wildcard-syntax[wildcards] can be used to configure expiry address for a set of addresses.
If a wildcard is used to configure the expiry address for a set of addresses and you want to _unset_ the expiry address for a particular addess (or set of addresses) then you can do so, e.g.:
[,xml]
----
<address-setting match="#">
<expiry-address>expiryQueue</expiry-address>
</address-setting>
<address-setting match="exampleQueue">
<expiry-address/> <!-- unset expiry-address so messages which expire from queues bound to matching addresses are dropped -->
</address-setting>
----
== Configuring Automatic Creation of Expiry Resources
It's common to segregate expired messages by their original address.