Source:
<code>public BlockingChannelInfo(ConnectionPoolConfig config, String host, Port port, MetricRegistry registry) { this.config = config; this.portType = port.getPortType(); if (portType == PortType.SSL) { <START> maxConnectionsPerChannel = config.connectionPoolMaxConnectionsPerPortSSL; <END> } else { maxConnectionsPerChannel = config.connectionPoolMaxConnectionsPerPortPlainText; } this.blockingChannelAvailableConnections = new ArrayBlockingQueue<BlockingChannel>(maxConnectionsPerChannel); this.blockingChannelActiveConnections = new ArrayBlockingQueue<BlockingChannel>(maxConnectionsPerChannel); this.numberOfConnections = new AtomicInteger(0); this.rwlock = new ReentrantReadWriteLock(); this.lock = new Object(); this.host = host; this.port = port.getPort(); availableConnections = new Gauge<Integer>() { @Override public Integer getValue() { return blockingChannelAvailableConnections.size(); } }; registry.register(MetricRegistry.name(BlockingChannelInfo.class, host + "-" + port + "-availableConnections"), availableConnections); activeConnections = new Gauge<Integer>() { @Override public Integer getValue() { return blockingChannelActiveConnections.size(); } }; registry.register(MetricRegistry.name(BlockingChannelInfo.class, host + "-" + port + "-activeConnections"), activeConnections); totalNumberOfConnections = new Gauge<Integer>() { @Override public Integer getValue() { return numberOfConnections.intValue(); } }; registry.register(MetricRegistry.name(BlockingChannelInfo.class, host + "-" + port + "-totalNumberOfConnections"), totalNumberOfConnections); logger.info("Starting blocking channel info for host and port {}", host, port); }</code><technical_language>config name connectionPoolMaxConnectionsPerHostSSL. Current name is max connections port - is right</technical_language>

Target:
public BlockingChannelInfo(ConnectionPoolConfig config, String host, Port port, MetricRegistry registry) { this.config = config; this.port = port; if (port.getPortType() == PortType.SSL) { maxConnectionsPerHostPerPort = config.connectionPoolMaxConnectionsPerPortSSL; } else { maxConnectionsPerHostPerPort = config.connectionPoolMaxConnectionsPerPortPlainText; } this.blockingChannelAvailableConnections = new ArrayBlockingQueue<BlockingChannel>(maxConnectionsPerHostPerPort); this.blockingChannelActiveConnections = new ArrayBlockingQueue<BlockingChannel>(maxConnectionsPerHostPerPort); this.numberOfConnections = new AtomicInteger(0); this.rwlock = new ReentrantReadWriteLock(); this.lock = new Object(); this.host = host; availableConnections = new Gauge<Integer>() { @Override public Integer getValue() { return blockingChannelAvailableConnections.size(); } }; registry .register(MetricRegistry.name(BlockingChannelInfo.class, host + "-" + port.getPort() + "-availableConnections"), availableConnections); activeConnections = new Gauge<Integer>() { @Override public Integer getValue() { return blockingChannelActiveConnections.size(); } }; registry .register(MetricRegistry.name(BlockingChannelInfo.class, host + "-" + port.getPort() + "-activeConnections"), activeConnections); totalNumberOfConnections = new Gauge<Integer>() { @Override public Integer getValue() { return numberOfConnections.intValue(); } }; registry.register( MetricRegistry.name(BlockingChannelInfo.class, host + "-" + port.getPort() + "-totalNumberOfConnections"), totalNumberOfConnections); logger.info("Starting blocking channel info for host and port {}", host, port.getPort()); }