@@ -144,18 +144,22 @@ public void ensureIsOpen()
144144 /** Hosts retrieved from the connection.open-ok */
145145 public Address [] _knownHosts ;
146146
147+ /** {@inheritDoc} */
147148 public String getHost () {
148149 return _frameHandler .getHost ();
149150 }
150151
152+ /** {@inheritDoc} */
151153 public int getPort () {
152154 return _frameHandler .getPort ();
153155 }
154156
157+ /** {@inheritDoc} */
155158 public ConnectionParameters getParameters () {
156159 return _params ;
157160 }
158161
162+ /** {@inheritDoc} */
159163 public Address [] getKnownHosts () {
160164 return _knownHosts ;
161165 }
@@ -211,23 +215,19 @@ public void checkPreconditions() {
211215 AMQCommand .checkEmptyContentBodyFrameSize ();
212216 }
213217
214- /**
215- * @see com.rabbitmq.client.Connection#getChannelMax()
216- */
218+ /** {@inheritDoc} */
217219 public int getChannelMax () {
218220 return _channelManager .getChannelMax ();
219221 }
220222
221223 /**
222- * Protected API - set the max <b>number</b> of channels available
224+ * Protected API - set the max channel <b>number</b>
223225 */
224226 public void setChannelMax (int value ) {
225227 _channelManager .setChannelMax (value );
226228 }
227229
228- /**
229- * @see com.rabbitmq.client.Connection#getFrameMax()
230- */
230+ /** {@inheritDoc} */
231231 public int getFrameMax () {
232232 return _frameMax ;
233233 }
@@ -240,9 +240,7 @@ public void setFrameMax(int value) {
240240 _frameMax = value ;
241241 }
242242
243- /**
244- * @see com.rabbitmq.client.Connection#getHeartbeat()
245- */
243+ /** {@inheritDoc} */
246244 public int getHeartbeat () {
247245 return _heartbeat ;
248246 }
@@ -270,18 +268,13 @@ public ExceptionHandler getExceptionHandler() {
270268 return _exceptionHandler ;
271269 }
272270
273- /**
274- * Public API - creates a new channel using the specified channel number.
275- */
276-
271+ /** Public API - {@inheritDoc} */
277272 public Channel createChannel (int channelNumber ) throws IOException {
278273 ensureIsOpen ();
279274 return _channelManager .createChannel (this , channelNumber );
280275 }
281276
282- /**
283- * Public API - creates a new channel using an internally allocated channel number.
284- */
277+ /** Public API - {@inheritDoc} */
285278 public Channel createChannel () throws IOException {
286279 ensureIsOpen ();
287280 return _channelManager .createChannel (this );
@@ -617,45 +610,53 @@ public ShutdownSignalException shutdown(Object reason,
617610 return sse ;
618611 }
619612
613+ /** Public API - {@inheritDoc} */
620614 public void close ()
621615 throws IOException
622616 {
623617 close (-1 );
624618 }
625619
620+ /** Public API - {@inheritDoc} */
626621 public void close (int timeout )
627622 throws IOException
628623 {
629624 close (AMQP .REPLY_SUCCESS , "OK" , timeout );
630625 }
631626
627+ /** Public API - {@inheritDoc} */
632628 public void close (int closeCode , String closeMessage )
633629 throws IOException
634630 {
635631 close (closeCode , closeMessage , -1 );
636632 }
637633
634+ /** Public API - {@inheritDoc} */
638635 public void close (int closeCode , String closeMessage , int timeout )
639636 throws IOException
640637 {
641638 close (closeCode , closeMessage , true , null , timeout , false );
642639 }
643640
641+ /** Public API - {@inheritDoc} */
644642 public void abort ()
645643 {
646644 abort (-1 );
647645 }
648646
647+ /** Public API - {@inheritDoc} */
649648 public void abort (int closeCode , String closeMessage )
650649 {
651650 abort (closeCode , closeMessage , -1 );
652651 }
653652
653+ /** Public API - {@inheritDoc} */
654654 public void abort (int timeout )
655655 {
656656 abort (AMQP .REPLY_SUCCESS , "OK" , timeout );
657657 }
658658
659+ /** Public API - {@inheritDoc} */
659660 public void abort (int closeCode , String closeMessage , int timeout )
660661 {
661662 try {
@@ -664,7 +665,13 @@ public void abort(int closeCode, String closeMessage, int timeout)
664665 Utility .emptyStatement ();
665666 }
666667 }
667-
668+
669+ /**
670+ * Protected API - Delegates to {@link
671+ * #close(int,String,boolean,Throwable,int,boolean) the
672+ * six-argument close method}, passing 0 for the timeout, and
673+ * false for the abort flag.
674+ */
668675 public void close (int closeCode ,
669676 String closeMessage ,
670677 boolean initiatedByApplication ,
0 commit comments