Skip to content

Commit 03db046

Browse files
committed
Add Javadoc to RPC timeout related classes
Fixes #219
1 parent d975201 commit 03db046

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/main/java/com/rabbitmq/client/ChannelRpcTimeoutException.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@
44
import java.util.concurrent.TimeoutException;
55

66
/**
7-
*
7+
* Exception thrown when a channel times out on a RPC call.
8+
* @since 4.1.0
89
*/
910
public class ChannelRpcTimeoutException extends IOException {
1011

12+
/**
13+
* The channel that performed the RPC.
14+
*/
1115
private final Object channel;
1216

17+
/**
18+
* The request method that timed out.
19+
*/
1320
private final Method method;
1421

1522
public ChannelRpcTimeoutException(TimeoutException cause, Object channel, Method method) {

src/main/java/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ public class ConnectionFactory implements Cloneable {
119119

120120
private SSLContext sslContext;
121121

122+
/**
123+
* RPC timeout.
124+
* @since 4.1.0
125+
*/
122126
private int channelRpcTimeout = DEFAULT_CHANNEL_RPC_TIMEOUT;
123127

124128
/** @return the default host to use for connections */

0 commit comments

Comments
 (0)