Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2726

Implement min/max expiry-delay

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12.0
    • 2.13.0
    • None

    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

          Activity

            People

              jbertram Justin Bertram
              jbertram Justin Bertram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m