To be more specific:
I need a way to delete a queue after a consumer didn't receive from the queue after a specified time.
Is there a build in mechanism to achieve this ?
I don't think there is such a mechanism in HornetQ. Why not delete the queue yourself, considering that it is not so hard a logic to implement?
1 of 1 people found this helpful
To my knowledge there is no feature in HornetQ which will do this for you. It is an interesting feature, though - a queue TTL (time to live). If we were to add such a feature we'd probably want to generalize it a bit to make it useful outside your specific use-case. For example:
- Ability to configure an absolute TTL or a dynamic TTL based on some other criteria.
- Ability to define the criteria to use for the dynamic TTL (e.g. when a message is consumed from the queue, when a message is produced to the queue, etc.).
It's not a terribly simple feature. If you want us to consider it further please open a JIRA describing exatly what you need and the use-case you're attempting to address (or perhaps just reference this thread if is has everything).