Description
At present, the address-setting expiry-delay allows setting an expiration on a message if one is not already set. However, being able to enforce a range would be useful.
Example:
<address-setting match="myAddress"> <min-expiry-delay>10</min-expiry-delay> <max-expiry-delay>100</max-expiry-delay> </address-setting>
Semantics could be as follows:
- Messages without an expiration will be set to max-expiry-delay. If max-expiry-delay is not defined then the message will be set to min-expiry-delay. If min-expiry-delay is not defined then the message will not be changed.
- Messages with an expiration above max-expiry-delay will be set to max-expiry-delay
- Messages with an expiration below min-expiry-delay will be set to min-expiry-delay
- Messages with an expiration within min-expiry-delay and max-expiry-delay range will not be changed
- Any value set for expiry-delay other than the default (i.e. -1) will override the aforementioned min/max settings.
Attachments
Issue Links
- is duplicated by
-
ARTEMIS-1583 Allow broker-side specification of max TTL for messages
- Resolved