Skip to content

Commit

Permalink
[ROCKETMQ-83] Fix quick start, annotate setNamesrvAddr, closes apache#54
Browse files Browse the repository at this point in the history
  • Loading branch information
dongeforever authored and zhouxinyu committed Feb 10, 2017
1 parent 7d9eac4 commit bd00854
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ public static void main(String[] args) throws InterruptedException, MQClientExce
* <p/>
*
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ public static void main(String[] args) throws MQClientException, InterruptedExce
* <p/>
*
* 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.
Expand Down

0 comments on commit bd00854

Please sign in to comment.