xiangwangcheng commented on a change in pull request #209: [ISSUE #208]support 
request/reply model in rocketmq-spring
URL: https://github.com/apache/rocketmq-spring/pull/209#discussion_r364212025
 
 

 ##########
 File path: 
rocketmq-spring-boot-samples/rocketmq-produce-demo/src/main/java/org/apache/rocketmq/samples/springboot/ProducerApplication.java
 ##########
 @@ -238,4 +297,14 @@ public RocketMQLocalTransactionState 
checkLocalTransaction(Message msg) {
         }
     }
 
+    class RocketMQRequestCallbackImpl_User implements 
RocketMQLocalRequestCallback<User> {
+        @Override public void onSuccess(User message) {
+            System.out.println("receive User: " + message.toString());
+        }
+
+        @Override public void onException(Throwable e) {
+            e.printStackTrace();
+        }
+    }
 
 Review comment:
   fixed

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


With regards,
Apache Git Services

Reply via email to