Skip to content

Commit 99b3a7b

Browse files
author
Alexandru Scvortov
committed
update javadoc
1 parent cc96cb6 commit 99b3a7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/com/rabbitmq/client/Connection.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
*
3939
* Channel channel = conn.createChannel();
4040
* </pre>
41+
* Or, more compactly:
42+
*
43+
* <pre>
44+
* ConnectionFactory factory = new ConnectionFactory();
45+
* factory.setUri("amqp://username:password@hostName:portNumber/virtualHost");
46+
* Connection conn = factory.newConnection();
47+
* Channel channel = conn.createChannel()
48+
* </pre>
4149
*
4250
* Current implementations are thread-safe for code at the client API level,
4351
* and in fact thread-safe internally except for code within RPC calls.

0 commit comments

Comments
 (0)