@@ -144,18 +144,22 @@ public void ensureIsOpen()
144
144
/** Hosts retrieved from the connection.open-ok */
145
145
public Address [] _knownHosts ;
146
146
147
+ /** {@inheritDoc} */
147
148
public String getHost () {
148
149
return _frameHandler .getHost ();
149
150
}
150
151
152
+ /** {@inheritDoc} */
151
153
public int getPort () {
152
154
return _frameHandler .getPort ();
153
155
}
154
156
157
+ /** {@inheritDoc} */
155
158
public ConnectionParameters getParameters () {
156
159
return _params ;
157
160
}
158
161
162
+ /** {@inheritDoc} */
159
163
public Address [] getKnownHosts () {
160
164
return _knownHosts ;
161
165
}
@@ -211,9 +215,7 @@ public void checkPreconditions() {
211
215
AMQCommand .checkEmptyContentBodyFrameSize ();
212
216
}
213
217
214
- /**
215
- * @see com.rabbitmq.client.Connection#getChannelMax()
216
- */
218
+ /** {@inheritDoc} */
217
219
public int getChannelMax () {
218
220
return _channelManager .getChannelMax ();
219
221
}
@@ -225,9 +227,7 @@ public void setChannelMax(int value) {
225
227
_channelManager .setChannelMax (value );
226
228
}
227
229
228
- /**
229
- * @see com.rabbitmq.client.Connection#getFrameMax()
230
- */
230
+ /** {@inheritDoc} */
231
231
public int getFrameMax () {
232
232
return _frameMax ;
233
233
}
@@ -240,9 +240,7 @@ public void setFrameMax(int value) {
240
240
_frameMax = value ;
241
241
}
242
242
243
- /**
244
- * @see com.rabbitmq.client.Connection#getHeartbeat()
245
- */
243
+ /** {@inheritDoc} */
246
244
public int getHeartbeat () {
247
245
return _heartbeat ;
248
246
}
@@ -270,18 +268,13 @@ public ExceptionHandler getExceptionHandler() {
270
268
return _exceptionHandler ;
271
269
}
272
270
273
- /**
274
- * Public API - creates a new channel using the specified channel number.
275
- */
276
-
271
+ /** Public API - {@inheritDoc} */
277
272
public Channel createChannel (int channelNumber ) throws IOException {
278
273
ensureIsOpen ();
279
274
return _channelManager .createChannel (this , channelNumber );
280
275
}
281
276
282
- /**
283
- * Public API - creates a new channel using an internally allocated channel number.
284
- */
277
+ /** Public API - {@inheritDoc} */
285
278
public Channel createChannel () throws IOException {
286
279
ensureIsOpen ();
287
280
return _channelManager .createChannel (this );
@@ -617,45 +610,53 @@ public ShutdownSignalException shutdown(Object reason,
617
610
return sse ;
618
611
}
619
612
613
+ /** Public API - {@inheritDoc} */
620
614
public void close ()
621
615
throws IOException
622
616
{
623
617
close (-1 );
624
618
}
625
619
620
+ /** Public API - {@inheritDoc} */
626
621
public void close (int timeout )
627
622
throws IOException
628
623
{
629
624
close (AMQP .REPLY_SUCCESS , "OK" , timeout );
630
625
}
631
626
627
+ /** Public API - {@inheritDoc} */
632
628
public void close (int closeCode , String closeMessage )
633
629
throws IOException
634
630
{
635
631
close (closeCode , closeMessage , -1 );
636
632
}
637
633
634
+ /** Public API - {@inheritDoc} */
638
635
public void close (int closeCode , String closeMessage , int timeout )
639
636
throws IOException
640
637
{
641
638
close (closeCode , closeMessage , true , null , timeout , false );
642
639
}
643
640
641
+ /** Public API - {@inheritDoc} */
644
642
public void abort ()
645
643
{
646
644
abort (-1 );
647
645
}
648
646
647
+ /** Public API - {@inheritDoc} */
649
648
public void abort (int closeCode , String closeMessage )
650
649
{
651
650
abort (closeCode , closeMessage , -1 );
652
651
}
653
652
653
+ /** Public API - {@inheritDoc} */
654
654
public void abort (int timeout )
655
655
{
656
656
abort (AMQP .REPLY_SUCCESS , "OK" , timeout );
657
657
}
658
658
659
+ /** Public API - {@inheritDoc} */
659
660
public void abort (int closeCode , String closeMessage , int timeout )
660
661
{
661
662
try {
@@ -664,7 +665,13 @@ public void abort(int closeCode, String closeMessage, int timeout)
664
665
Utility .emptyStatement ();
665
666
}
666
667
}
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
+ */
668
675
public void close (int closeCode ,
669
676
String closeMessage ,
670
677
boolean initiatedByApplication ,
0 commit comments