Skip to content

Commit 1e1e346

Browse files
author
Matthew Sackman
committed
Merging bug 21899 into default
2 parents 2d7f5ad + 546c0c1 commit 1e1e346

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+452
-473
lines changed

src/com/rabbitmq/client/Connection.java

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@
3535
/**
3636
* Public API: Interface to an AMQ connection. See the see the <a href="http://www.amqp.org/">spec</a> for details.
3737
* <p>
38-
* To connect to a broker, fill in a {@link ConnectionParameters} and use a {@link ConnectionFactory} as follows:
38+
* To connect to a broker, fill in a {@link ConnectionFactory} and use a {@link ConnectionFactory} as follows:
3939
*
4040
* <pre>
41-
* ConnectionParameters params = new ConnectionParameters();
42-
* params.setUsername(userName);
43-
* params.setPassword(password);
44-
* params.setVirtualHost(virtualHost);
45-
* params.setRequestedHeartbeat(0);
46-
* ConnectionFactory factory = new ConnectionFactory(params);
47-
* Connection conn = factory.newConnection(hostName, AMQP.PROTOCOL.PORT);
41+
* ConnectionFactory factory = new ConnectionFactory();
42+
* factory.setHostName(hostName);
43+
* factory.setVirtualHost(virtualHost);
44+
* factory.setUsername(userName);
45+
* factory.setPassword(password);
46+
* Connection conn = factory.newConnection();
4847
*
4948
* // Then open a channel:
5049
*
@@ -68,39 +67,24 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
6867

6968
int getPort();
7069

71-
/**
72-
* Retrieve the connection parameters.
73-
* @return the initialization parameters used to open this connection.
74-
*/
75-
ConnectionParameters getParameters();
76-
7770
/**
7871
* Get the negotiated maximum channel number. Usable channel
7972
* numbers range from 1 to this number, inclusive.
8073
*
81-
* Note that this is the <i>current</i> setting, as opposed to the <i>initially-requested</i>
82-
* setting available from {@link #getParameters()}.{@link ConnectionParameters#getRequestedChannelMax()}.
83-
*
8474
* @return the maximum channel number permitted for this connection.
8575
*/
8676
int getChannelMax();
8777

8878
/**
8979
* Get the negotiated maximum frame size.
9080
*
91-
* Note that this is the <i>current</i> setting, as opposed to the <i>initially-requested</i>
92-
* setting available from {@link #getParameters()}.{@link ConnectionParameters#getRequestedFrameMax()}.
93-
*
9481
* @return the maximum frame size, in octets; zero if unlimited
9582
*/
9683
int getFrameMax();
9784

9885
/**
9986
* Get the negotiated heartbeat interval.
10087
*
101-
* Note that this is the <i>current</i> setting, as opposed to the <i>initially-requested</i>
102-
* setting available from {@link #getParameters()}.{@link ConnectionParameters#getRequestedHeartbeat()}.
103-
*
10488
* @return the heartbeat interval, in seconds; zero if none
10589
*/
10690
int getHeartbeat();

0 commit comments

Comments
 (0)