ni-ze opened a new issue #788:
URL: https://github.com/apache/rocketmq-externals/issues/788


    
   
![image](https://user-images.githubusercontent.com/31175234/129850264-19ea2fd6-f628-4b3e-9039-2505f4431c4e.png)
   DefaultMQPullConsumer.start() in open method, and pull message in run method.
   
   DefaultMQPullConsumer.start() would create netty client and many other 
resources, It should guaranteed to be closed properly under any conditions.
   
   It is recommended to use as follows
   ```java
   DefaultMQPullConsumer consumer =null;
   try{
   //initializate
   ...
   
   //start
   consumer.start()
   
   //use
   ...
   
   
   } finally {
        if (consumer != null){
          consumer.shutdown();
     }
   }
   
   ```
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to