panzhi33 commented on issue #3432:
URL: https://github.com/apache/rocketmq/issues/3432#issuecomment-951963695


   No need to start。IMO,If it is started, it will always be waiting to get 
tasks from the queue, and the thread will always be in the waiting state. 
Basically do not consume cpu resources
   while (!this.isStopped()) {
               try {
                   PullRequest pullRequest = this.pullRequestQueue.take();
                   this.pullMessage(pullRequest);
               } catch (InterruptedException ignored) {
               } catch (Exception e) {
                   log.error("Pull Message Service Run Method exception", e);
               }
           }


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