xiangwangcheng commented on a change in pull request #1836: [ISSUE #1833] 
Support messageBuilder for message
URL: https://github.com/apache/rocketmq/pull/1836#discussion_r398275368
 
 

 ##########
 File path: 
common/src/main/java/org/apache/rocketmq/common/message/MessageBuilder.java
 ##########
 @@ -0,0 +1,99 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.rocketmq.common.message;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+// user facede of message to send, less pressure about message.
+public class MessageBuilder {
+
+    private String topic;
+    private Map<String, String> properties;
+    private byte[] body;
+
 
 Review comment:
   > If I wanna contribute the rest of code, should I copy his code, modify and 
re-submit the PR?
   
   You can leave your advice here and help @ujianhai666 to optimize this PR. 
Contributions are welcomed in any forms including 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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to