@@ -122,10 +122,10 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
122122
123123 /**
124124 * Close this connection and all its channels
125- * with the default close code and message.
125+ * with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
126+ * and message 'OK'.
126127 *
127- * This method will wait infinitely for all the close operations to
128- * complete.
128+ * Waits for all the close operations to complete.
129129 *
130130 * @throws IOException if an I/O problem is encountered
131131 */
@@ -134,8 +134,7 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
134134 /**
135135 * Close this connection and all its channels.
136136 *
137- * This method will wait infinitely for all the close operations to
138- * complete.
137+ * Waits for all the close operations to complete.
139138 *
140139 * @param closeCode the close code (See under "Reply Codes" in the AMQP specification)
141140 * @param closeMessage a message indicating the reason for closing the connection
@@ -145,11 +144,12 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
145144
146145 /**
147146 * Close this connection and all its channels
148- * with the default close code and message.
149- *
150- * This method will wait with the given timeout for all the close
151- * operations to complete. If timeout is reached then socket is forced
152- * to close.
147+ * with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
148+ * and message 'OK'.
149+ *
150+ * This method behaves in a similar way as {@link #close()}, with the only difference
151+ * that it waits with a provided timeout for all the close operations to
152+ * complete. When timeout is reached the socket is forced to close.
153153 *
154154 * @param timeout timeout (in milliseconds) for completing all the close-related
155155 * operations, use -1 for infinity
@@ -160,9 +160,8 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
160160 /**
161161 * Close this connection and all its channels.
162162 *
163- * This method will wait with the given timeout for all the close
164- * operations to complete. If timeout is reached then socket is forced
165- * to close.
163+ * Waits with the given timeout for all the close operations to complete.
164+ * When timeout is reached the socket is forced to close.
166165 *
167166 * @param closeCode the close code (See under "Reply Codes" in the AMQP specification)
168167 * @param closeMessage a message indicating the reason for closing the connection
@@ -174,18 +173,19 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
174173
175174 /**
176175 * Abort this connection and all its channels
177- * with the default code and message.
176+ * with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
177+ * and message 'OK'.
178178 *
179- * This method will force the connection to close. It will silently discard
180- * any exceptions encountered in close operations.
179+ * Forces the connection to close.
180+ * Any encountered exceptions in the close operations are silently discarded .
181181 */
182182 void abort ();
183183
184184 /**
185185 * Abort this connection and all its channels.
186186 *
187- * This method will force the connection to close. It will silently discard
188- * any exceptions encountered in close operations.
187+ * Forces the connection to close and waits for all the close operations to complete.
188+ * Any encountered exceptions in the close operations are silently discarded .
189189 *
190190 * @param closeCode the close code (See under "Reply Codes" in the AMQP specification)
191191 * @param closeMessage a message indicating the reason for closing the connection
@@ -194,11 +194,12 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
194194
195195 /**
196196 * Abort this connection and all its channels
197- * with the default close code and message.
197+ * with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
198+ * and message 'OK'.
198199 *
199- * This method behaves in a similar way as abort(), with the only difference
200- * that it will wait with a provided timeout for all the close operations to
201- * complete. If timeout is reached socket is forced to close.
200+ * This method behaves in a similar way as {@link # abort()} , with the only difference
201+ * that it waits with a provided timeout for all the close operations to
202+ * complete. When timeout is reached the socket is forced to close.
202203 *
203204 * @param timeout timeout (in milliseconds) for completing all the close-related
204205 * operations, use -1 for infinity
@@ -208,9 +209,10 @@ public interface Connection extends ShutdownNotifier { // rename to AMQPConnecti
208209 /**
209210 * Abort this connection and all its channels.
210211 *
211- * This method behaves in a similar way as abort(), with the only difference
212- * that it will wait with a provided timeout for all the close operations to
213- * complete. If timeout is reached socket is forced to close.
212+ * Forces the connection to close and waits with the given timeout
213+ * for all the close operations to complete. When timeout is reached
214+ * the socket is forced to close.
215+ * Any encountered exceptions in the close operations are silently discarded.
214216 *
215217 * @param closeCode the close code (See under "Reply Codes" in the AMQP specification)
216218 * @param closeMessage a message indicating the reason for closing the connection
0 commit comments