3030 * Public API: Interface to an AMQ connection. See the see the <a href="http://www.amqp.org/">spec</a> for details.
3131 * <p>
3232 * To connect to a broker, fill in a {@link ConnectionParameters} and use a {@link ConnectionFactory} as follows:
33- *
33+ *
3434 * <pre>
3535 * ConnectionParameters params = new ConnectionParameters();
3636 * params.setUsername(userName);
4141 * Connection conn = factory.newConnection(hostName, AMQP.PROTOCOL.PORT);
4242 *
4343 * // Then open a channel and retrieve an access ticket:
44- *
44+ *
4545 * Channel channel = conn.createChannel();
4646 * int ticket = channel.accessRequest(realmName);
4747 * </pre>
@@ -104,7 +104,7 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
104104 * @return an array of addresses for all hosts that came back in the initial {@link com.rabbitmq.client.AMQP.Connection.OpenOk} open-ok method
105105 */
106106 Address [] getKnownHosts ();
107-
107+
108108 /**
109109 * Create a new channel, using an internally allocated channel number.
110110 * @return a new channel descriptor, or null if none is available
@@ -119,20 +119,20 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
119119 * @throws IOException if an I/O problem is encountered
120120 */
121121 Channel createChannel (int channelNumber ) throws IOException ;
122-
122+
123123 /**
124124 * Close this connection and all its channels.
125- *
125+ *
126126 * This method will wait infinitely for all the close operations to
127127 * complete.
128- *
128+ *
129129 * @throws IOException if an I/O problem is encountered
130130 */
131131 void close () throws IOException ;
132-
132+
133133 /**
134134 * Close this connection and all its channels
135- *
135+ *
136136 * This method will wait with the given timeout for all the close
137137 * operations to complete. If timeout is reached then socket is forced
138138 * to close
@@ -141,22 +141,22 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
141141 * @throws IOException if an I/O problem is encountered
142142 */
143143 void close (int timeout ) throws IOException ;
144-
144+
145145 /**
146146 * Abort this connection and all its channels.
147- *
147+ *
148148 * This method will force the connection to close. It will silently discard
149149 * any exceptions enountered in close operations
150150 */
151151 void abort ();
152-
152+
153153 /**
154154 * Abort this connection and all its channels.
155- *
155+ *
156156 * This method behaves in a similar way as abort(), with the only difference
157157 * that it will wait with a provided timeout for all the close operations to
158158 * complete. If timeout is reached socket is forced to close.
159- *
159+ *
160160 * @param timeout timeout (in miliseconds) for completing all the close-related
161161 * operations, use -1 for infinity
162162 */
0 commit comments