Skip to content

Commit 1308d21

Browse files
author
Alexandru Scvortov
committed
updated docs
1 parent 3fbfe0c commit 1308d21

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/com/rabbitmq/client/Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
*
4141
* <pre>
4242
* ConnectionFactory factory = new ConnectionFactory();
43-
* factory.setHostName(hostName);
44-
* factory.setPortNumber(portNumber);
43+
* factory.setHost(hostName);
44+
* factory.setPort(portNumber);
4545
* factory.setVirtualHost(virtualHost);
4646
* factory.setUsername(username);
4747
* factory.setPassword(password);

src/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ public int getPort() {
134134
return portOrDefault(port);
135135
}
136136

137-
/**
138-
* @return the default port to use for connections
139-
*/
140137
public void setPort(int port) {
141138
this.port = port;
142139
}
@@ -244,7 +241,7 @@ public void setRequestedHeartbeat(int requestedHeartbeat) {
244241
* table. Such changes will take effect when the next new
245242
* connection is started using this factory.
246243
* @return the map of client properties
247-
* @see setClientProperties()
244+
* @see #setClientProperties
248245
*/
249246
public Map<String, Object> getClientProperties() {
250247
return _clientProperties;
@@ -254,7 +251,7 @@ public Map<String, Object> getClientProperties() {
254251
* Replace the table of client properties that will be sent to the
255252
* server during subsequent connection startups.
256253
* @param clientProperties the map of extra client properties
257-
* @see getClientProperties()
254+
* @see #getClientProperties
258255
*/
259256
public void setClientProperties(Map<String, Object> clientProperties) {
260257
_clientProperties = clientProperties;

src/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* ch1.open();
7171
* </pre>
7272
*
73-
* For a saner way of connecting to a broker, see {@link Connection}.
73+
* For a better way of connecting to a broker, see {@link Connection}.
7474
*/
7575
public class AMQConnection extends ShutdownNotifierComponent implements Connection {
7676
/** Timeout used while waiting for AMQP handshaking to complete (milliseconds) */
@@ -85,7 +85,7 @@ public class AMQConnection extends ShutdownNotifierComponent implements Connecti
8585
* method is called when each new ConnectionFactory instance is
8686
* constructed.
8787
* @return a map of client properties
88-
* @see Connection.getClientProperties()
88+
* @see Connection#getClientProperties
8989
*/
9090
public static Map<String, Object> defaultClientProperties() {
9191
return Frame.buildTable(new Object[] {
@@ -140,7 +140,7 @@ public static Map<String, Object> defaultClientProperties() {
140140

141141
/**
142142
* Protected API - respond, in the driver thread, to a ShutdownSignal.
143-
* @param channelNumber the number of the channel to disconnect
143+
* @param channel the channel to disconnect
144144
*/
145145
public final void disconnectChannel(ChannelN channel) {
146146
_channelManager.disconnectChannel(channel);

0 commit comments

Comments
 (0)