HScarb commented on code in PR #4352:
URL: https://github.com/apache/rocketmq/pull/4352#discussion_r879118956


##########
example/src/main/java/org/apache/rocketmq/example/schedule/ScheduledMessageConsumer.java:
##########
@@ -17,31 +17,33 @@
 package org.apache.rocketmq.example.schedule;
 
 import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
-import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
 import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;
 import 
org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently;
 import org.apache.rocketmq.common.message.MessageExt;
 
-import java.util.List;
-
 public class ScheduledMessageConsumer {
-    
+
+    public static final String CONSUMER_GROUP = "ExampleConsumer";
+    public static final String DEFAULT_NAMESRVADDR = "127.0.0.1:9876";
+    public static final String TOPIC = "TestTopic";
+
     public static void main(String[] args) throws Exception {
         // Instantiate message consumer
-        DefaultMQPushConsumer consumer = new 
DefaultMQPushConsumer("ExampleConsumer");
+        DefaultMQPushConsumer consumer = new 
DefaultMQPushConsumer(CONSUMER_GROUP);
+
+        // If the debugging source code can open comments, you need to set the 
namesrvAddr to the address of the local namesrvAddr

Review Comment:
   What does this sentence mean?
   >If the debugging source code can open comments



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