Skip to content

Commit 51c6f16

Browse files
Naming
1 parent 6ac914f commit 51c6f16

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ public ConnectionParams params(ExecutorService consumerWorkServiceExecutor) {
965965
result.setShutdownExecutor(shutdownExecutor);
966966
result.setHeartbeatExecutor(heartbeatExecutor);
967967
result.setChannelRpcTimeout(channelRpcTimeout);
968-
result.setChannelCheckRpcReplyType(channelCheckRpcReplyType);
968+
result.setChannelShouldCheckRpcResponseType(channelCheckRpcReplyType);
969969
return result;
970970
}
971971

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.isChannelCheckRpcReplyType();
88+
this._checkRpcReplyType = connection.willCheckRpcResponseType();
8989
}
9090

9191
/**

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static Map<String, Object> defaultClientProperties() {
134134
private final Collection<BlockedListener> blockedListeners = new CopyOnWriteArrayList<BlockedListener>();
135135
protected final MetricsCollector metricsCollector;
136136
private final int channelRpcTimeout;
137-
private final boolean channelCheckRpcReplyType;
137+
private final boolean channelShouldCheckRpcResponseType;
138138

139139
/* State modified after start - all volatile */
140140

@@ -230,7 +230,7 @@ public AMQConnection(ConnectionParams params, FrameHandler frameHandler, Metrics
230230
throw new IllegalArgumentException("Continuation timeout on RPC calls cannot be less than 0");
231231
}
232232
this.channelRpcTimeout = params.getChannelRpcTimeout();
233-
this.channelCheckRpcReplyType = params.isChannelCheckRpcReplyType();
233+
this.channelShouldCheckRpcResponseType = params.channelShouldCheckRpcResponseType();
234234

235235
this._channel0 = new AMQChannel(this, 0) {
236236
@Override public boolean processAsync(Command c) throws IOException {
@@ -1059,7 +1059,7 @@ public int getChannelRpcTimeout() {
10591059
return channelRpcTimeout;
10601060
}
10611061

1062-
public boolean isChannelCheckRpcReplyType() {
1063-
return channelCheckRpcReplyType;
1062+
public boolean willCheckRpcResponseType() {
1063+
return channelShouldCheckRpcResponseType;
10641064
}
10651065
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ConnectionParams {
4040
private long networkRecoveryInterval;
4141
private boolean topologyRecovery;
4242
private int channelRpcTimeout;
43-
private boolean channelCheckRpcReplyType;
43+
private boolean channelShouldCheckRpcResponseType;
4444

4545
private ExceptionHandler exceptionHandler;
4646
private ThreadFactory threadFactory;
@@ -115,8 +115,8 @@ public int getChannelRpcTimeout() {
115115
return channelRpcTimeout;
116116
}
117117

118-
public boolean isChannelCheckRpcReplyType() {
119-
return channelCheckRpcReplyType;
118+
public boolean channelShouldCheckRpcResponseType() {
119+
return channelShouldCheckRpcResponseType;
120120
}
121121

122122
public void setUsername(String username) {
@@ -195,7 +195,7 @@ public void setChannelRpcTimeout(int channelRpcTimeout) {
195195
this.channelRpcTimeout = channelRpcTimeout;
196196
}
197197

198-
public void setChannelCheckRpcReplyType(boolean channelCheckRpcReplyType) {
199-
this.channelCheckRpcReplyType = channelCheckRpcReplyType;
198+
public void setChannelShouldCheckRpcResponseType(boolean channelShouldCheckRpcResponseType) {
199+
this.channelShouldCheckRpcResponseType = channelShouldCheckRpcResponseType;
200200
}
201201
}

src/test/java/com/rabbitmq/client/test/AMQChannelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ public Void call() throws Exception {
107107
}
108108

109109
@Test
110-
public void testRpcTimeout_replyComesDuringNexRpc() throws Exception {
110+
public void testRpcTimeoutReplyComesDuringNexRpc() throws Exception {
111111
int rpcTimeout = 100;
112112
AMQConnection connection = mock(AMQConnection.class);
113113
when(connection.getChannelRpcTimeout()).thenReturn(rpcTimeout);
114-
when(connection.isChannelCheckRpcReplyType()).thenReturn(Boolean.TRUE);
114+
when(connection.willCheckRpcResponseType()).thenReturn(Boolean.TRUE);
115115

116116
final DummyAmqChannel channel = new DummyAmqChannel(connection, 1);
117117
Method method = new AMQImpl.Queue.Declare.Builder()

0 commit comments

Comments
 (0)