Justin Bertram created ARTEMIS-2726:
---------------------------------------
Summary: Implement min/max expiry-delay
Key: ARTEMIS-2726
URL: https://issues.apache.org/jira/browse/ARTEMIS-2726
Project: ActiveMQ Artemis
Issue Type: New Feature
Affects Versions: 2.12.0
Reporter: Justin Bertram
Assignee: Justin Bertram
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:
{code:xml}
<address-setting match="myAddress">
<min-expiry-delay>10</min-expiry-delay>
<max-expiry-delay>100</max-expiry-delay>
</address-setting>
{code}
Semantics could be as follows:
* Messages _without_ an expiration will be set to {{max-expiry-delay}}
* 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)