lizhanhui commented on code in PR #263:
URL: https://github.com/apache/rocketmq-site/pull/263#discussion_r979779406


##########
docs/02-生产者/05message1.md:
##########
@@ -61,7 +61,7 @@ Apache RocketMQ可用于以三种方式发送消息:**同步、异步和单向
 2. **设置 NameServer 的地址**。Apache 
RocketMQ很多方式设置NameServer地址(客户端配置中有介绍),这里是在代码中调用producer的API 
setNamesrvAddr进行设置,如果有多个NameServer,中间以分号隔开,比如"127.0.0.2:9876;127.0.0.3:9876"。 
 3. **第三步是构建消息**。指定topic、tag、body等信息,tag可以理解成标签,对消息进行再归类,RocketMQ可以在消费端对tag进行过滤。
 4. 
**最后调用send接口将消息发送出去**。同步发送等待结果最后返回SendResult,SendResut包含实际发送状态还包括SEND_OK(发送成功), 
FLUSH_DISK_TIMEOUT(刷盘超时), FLUSH_SLAVE_TIMEOUT(同步到备超时), 
SLAVE_NOT_AVAILABLE(备不可用),如果发送失败会抛出异常。

Review Comment:
   5.0也不再包含存储层面的状态了



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