Skip to content

Commit a3085b3

Browse files
Naming
1 parent 51c6f16 commit a3085b3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public class ConnectionFactory implements Cloneable {
132132
* Default is false.
133133
* @since 4.2.0
134134
*/
135-
private boolean channelCheckRpcReplyType = false;
135+
private boolean channelShouldCheckRpcResponseType = false;
136136

137137
/** @return the default host to use for connections */
138138
public String getHost() {
@@ -965,7 +965,7 @@ public ConnectionParams params(ExecutorService consumerWorkServiceExecutor) {
965965
result.setShutdownExecutor(shutdownExecutor);
966966
result.setHeartbeatExecutor(heartbeatExecutor);
967967
result.setChannelRpcTimeout(channelRpcTimeout);
968-
result.setChannelShouldCheckRpcResponseType(channelCheckRpcReplyType);
968+
result.setChannelShouldCheckRpcResponseType(channelShouldCheckRpcResponseType);
969969
return result;
970970
}
971971

@@ -1136,13 +1136,13 @@ public int getChannelRpcTimeout() {
11361136
/**
11371137
* Set whether or not channels check the reply type of an RPC call.
11381138
* Default is false.
1139-
* @param channelCheckRpcReplyType
1139+
* @param channelShouldCheckRpcResponseType
11401140
*/
1141-
public void setChannelCheckRpcReplyType(boolean channelCheckRpcReplyType) {
1142-
this.channelCheckRpcReplyType = channelCheckRpcReplyType;
1141+
public void setChannelShouldCheckRpcResponseType(boolean channelShouldCheckRpcResponseType) {
1142+
this.channelShouldCheckRpcResponseType = channelShouldCheckRpcResponseType;
11431143
}
11441144

1145-
public boolean isChannelCheckRpcReplyType() {
1146-
return channelCheckRpcReplyType;
1145+
public boolean isChannelShouldCheckRpcResponseType() {
1146+
return channelShouldCheckRpcResponseType;
11471147
}
11481148
}

src/main/java/com/rabbitmq/client/impl/AMQChannel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public abstract class AMQChannel extends ShutdownNotifierComponent {
7171
/** Timeout for RPC calls */
7272
protected final int _rpcTimeout;
7373

74-
private final boolean _checkRpcReplyType;
74+
private final boolean _checkRpcResponseType;
7575

7676
/**
7777
* Construct a channel on the given connection, with the given channel number.
@@ -85,7 +85,7 @@ public AMQChannel(AMQConnection connection, int channelNumber) {
8585
throw new IllegalArgumentException("Continuation timeout on RPC calls cannot be less than 0");
8686
}
8787
this._rpcTimeout = connection.getChannelRpcTimeout();
88-
this._checkRpcReplyType = connection.willCheckRpcResponseType();
88+
this._checkRpcResponseType = connection.willCheckRpcResponseType();
8989
}
9090

9191
/**
@@ -162,7 +162,7 @@ public void handleCompleteInboundCommand(AMQCommand command) throws IOException
162162
if (!processAsync(command)) {
163163
// The filter decided not to handle/consume the command,
164164
// so it must be some reply to an earlier RPC.
165-
if (_checkRpcReplyType) {
165+
if (_checkRpcResponseType) {
166166
synchronized (_channelMutex) {
167167
// check if this reply command is intended for the current waiting request before calling nextOutstandingRpc()
168168
if (!_activeRpc.canHandleReply(command)) {

0 commit comments

Comments
 (0)