8000 More specific ConnectionParams field name · panchenko/rabbitmq-java-client@f6b969e · GitHub
[go: up one dir, main page]

Skip to content

Commit f6b969e

Browse files
More specific ConnectionParams field name
1 parent 2f60a8b commit f6b969e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ public Connection newConnection(ExecutorService executor, Address[] addrs)
664664
}
665665
}
666666

667-
public ConnectionParams params(ExecutorService executor) {
667+
public ConnectionParams params(ExecutorService consumerWorkServiceExecutor) {
668668
ConnectionParams result = new ConnectionParams();
669669

670670
result.setUsername(username);
671671
result.setPassword(password);
672-
result.setExecutor(executor);
672+
result.setConsumerWorkServiceExecutor(consumerWorkServiceExecutor);
673673
result.setVirtualHost(virtualHost);
674674
result.setClientProperties(getClientProperties());
675675
result.setRequestedFrameMax(requestedFrameMax);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public AMQConnection(ConnectionParams params, FrameHandler frameHandler)
220220
this.handshakeTimeout = params.getHandshakeTimeout();
221221
this.shutdownTimeout = params.getShutdownTimeout();
222222
this.saslConfig = params.getSaslConfig();
223-
this.executor = params.getExecutor();
223+
this.executor = params.getConsumerWorkServiceExecutor();
224224
this.threadFactory = params.getThreadFactory();
225225

226226
this._channelManager = null;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class ConnectionParams {
1111
private String username;
1212
private String password;
13-
private ExecutorService executor;
13+
private ExecutorService consumerWorkServiceExecutor;
1414
private String virtualHost;
1515
private Map<String, Object> clientProperties;
1616
private int requestedFrameMax;
@@ -35,8 +35,8 @@ public String getPassword() {
3535
return password;
3636
}
3737

38-
public ExecutorService getExecutor() {
39-
return executor;
38+
public ExecutorService getConsumerWorkServiceExecutor() {
39+
return consumerWorkServiceExecutor;
4040
}
4141

4242
public String getVirtualHost() {
@@ -99,8 +99,8 @@ public void setPassword(String password) {
9999
this.password = password;
100100
}
101101

102-
public void setExecutor(ExecutorService executor) {
103-
this.executor = executor;
102+
public void setConsumerWorkServiceExecutor(ExecutorService consumerWorkServiceExecutor) {
103+
this.consumerWorkServiceExecutor = consumerWorkServiceExecutor;
104104
}
105105

106106
public void setVirtualHost(String virtualHost) {

0 commit comments

Comments
 (0)
0