Skip to content

Commit c214a04

Browse files
author
Matthias Radestock
committed
merge bug19575 into v1_5
2 parents 0e81d5d + 56416a7 commit c214a04

File tree

6 files changed

+68
-180
lines changed

6 files changed

+68
-180
lines changed

src/com/rabbitmq/client/impl/AMQCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,17 @@ public AMQCommand(Method method, AMQContentHeader contentHeader, byte[] body) {
100100
setContentBody(body);
101101
}
102102

103-
/** Public API - Retrieve the Command's method. */
103+
/** Public API - {@inheritDoc} */
104104
public Method getMethod() {
105105
return _method;
106106
}
107107

108-
/** Public API - Retrieve the Command's ContentHeader. */
108+
/** Public API - {@inheritDoc} */
109109
public ContentHeader getContentHeader() {
110110
return _contentHeader;
111111
}
112112

113-
/** Public API - Retrieve the Command's content body. */
113+
/** Public API - {@inheritDoc} */
114114
public byte[] getContentBody() {
115115
if (_bodyN != null) {
116116
coalesceContentBody();

src/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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,9 +215,7 @@ 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
}
@@ -225,9 +227,7 @@ 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,

src/com/rabbitmq/client/impl/AMQContentHeader.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void writeTo(DataOutputStream out, long bodySize) throws IOException {
6363
}
6464

6565
/**
66-
* Private API - Autogenerated reader for this header
66+
* Private API - Autogenerated reader for this header
6767
*/
6868
public abstract void readPropertiesFrom(ContentHeaderPropertyReader reader) throws IOException;
6969

@@ -72,9 +72,7 @@ public void writeTo(DataOutputStream out, long bodySize) throws IOException {
7272
*/
7373
public abstract void writePropertiesTo(ContentHeaderPropertyWriter writer) throws IOException;
7474

75-
/**
76-
* Public API - Debugging hook
77-
*/
75+
/** Public API - {@inheritDoc} */
7876
public void appendPropertyDebugStringTo(StringBuffer acc) {
7977
acc.append("(?)");
8078
}

0 commit comments

Comments
 (0)