Carmon-Lee opened a new issue #2153: URL: https://github.com/apache/rocketmq/issues/2153
**FEATURE REQUEST** 1. Add Termination Result for Producer or Consumer Client. Recently I am working on graceful shutdown of the whole project, during which I came across the problem of graceful shutdown of RocketMQ. Currently, the client provided by the official release does not have any api for ensuring termination of the internal thread pool, except one that shutdown the internal thread pool and clean or change the internal state, which of course can not satisfy my demand. What I need is, the provider of consumer client can provide an awaitTermination api that can block for some time after shutdown to make sure all the messages received before shutdown can be fully processed and the thread pool all terminated. Only by garantee this can we make sure that the client is fully shutdown and all work done. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
