This can be done at the application level or through TTL and Dead letter exchanges . An unknown way of what you want on the broker's side (and I see no reason why you cannot do this on the consumer side)
PS: just make the comment more visible
The main idea is to create a custom ttl property (a-la hops count in TCP / IP packets) and reduce it every time a message is consumed (and re-publish the message body with new details). When it reaches zero - publish it in another queue.
source
share