提交 bd008546 编写于 作者: D dongeforever 提交者: yukon

[ROCKETMQ-83] Fix quick start, annotate setNamesrvAddr, closes apache/incubator-rocketmq#54

上级 7d9eac45
...@@ -42,8 +42,12 @@ public class Consumer { ...@@ -42,8 +42,12 @@ public class Consumer {
* <p/> * <p/>
* *
* Alternatively, you may specify name server addresses via exporting environmental variable: NAMESRV_ADDR * Alternatively, you may specify name server addresses via exporting environmental variable: NAMESRV_ADDR
* <pre>
* {@code
* consumer.setNamesrvAddr("name-server1-ip:9876;name-server2-ip:9876");
* }
* </pre>
*/ */
consumer.setNamesrvAddr("name-server1-ip:9876;name-server2-ip:9876");
/* /*
* Specify where to start in case the specified consumer group is a brand new one. * Specify where to start in case the specified consumer group is a brand new one.
......
...@@ -38,8 +38,12 @@ public class Producer { ...@@ -38,8 +38,12 @@ public class Producer {
* <p/> * <p/>
* *
* Alternatively, you may specify name server addresses via exporting environmental variable: NAMESRV_ADDR * Alternatively, you may specify name server addresses via exporting environmental variable: NAMESRV_ADDR
* <pre>
* {@code
* producer.setNamesrvAddr("name-server1-ip:9876;name-server2-ip:9876");
* }
* </pre>
*/ */
producer.setNamesrvAddr("name-server1-ip:9876;name-server2-ip:9876");
/* /*
* Launch the instance. * Launch the instance.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册