I am using the DefaultMessageListenerContainer
with ActiveMQ. While the listener is still running I want to briefly stop consuming messages lets say for 30 mins without stopping the container.
DefaultMessageListenerContainer.stop()
will help me do this but I do not want to use this.
Is there a way to achieve this?