@Override protected ChannelPool newPool(RequestKey key) { Bootstrap newBootstrap = bootstrap.clone(group); newBootstrap.remoteAddress(key.getRemoteAddress()); AbstractChannelPoolHandler channelPoolHandler = newPoolHandler(key); return new FixedChannelPool( newBootstrap, channelPoolHandler, ChannelHealthChecker.ACTIVE, FixedChannelPool.AcquireTimeoutAction.FAIL, connectionPoolConfiguration.getAcquireTimeout().map(Duration::toMillis).orElse(-1L), maxConnections, connectionPoolConfiguration.getMaxPendingAcquires() ); } };
if (connectionPoolConfiguration.isEnabled()) { int maxConnections = connectionPoolConfiguration.getMaxConnections(); if (maxConnections > -1) { poolMap = new AbstractChannelPoolMap<RequestKey, ChannelPool>() {
if (connectionPoolConfiguration.isEnabled()) { int maxConnections = connectionPoolConfiguration.getMaxConnections(); if (maxConnections > -1) { poolMap = new AbstractChannelPoolMap<RequestKey, ChannelPool>() {
if (connectionPoolConfiguration.isEnabled()) { int maxConnections = connectionPoolConfiguration.getMaxConnections(); if (maxConnections > -1) { poolMap = new AbstractChannelPoolMap<RequestKey, ChannelPool>() {
@Override protected ChannelPool newPool(RequestKey key) { Bootstrap newBootstrap = bootstrap.clone(group); newBootstrap.remoteAddress(key.getRemoteAddress()); AbstractChannelPoolHandler channelPoolHandler = newPoolHandler(key); return new FixedChannelPool( newBootstrap, channelPoolHandler, ChannelHealthChecker.ACTIVE, FixedChannelPool.AcquireTimeoutAction.FAIL, connectionPoolConfiguration.getAcquireTimeout().map(Duration::toMillis).orElse(-1L), maxConnections, connectionPoolConfiguration.getMaxPendingAcquires() ); } };
@Override protected ChannelPool newPool(RequestKey key) { Bootstrap newBootstrap = bootstrap.clone(group); newBootstrap.remoteAddress(key.getRemoteAddress()); AbstractChannelPoolHandler channelPoolHandler = newPoolHandler(key); return new FixedChannelPool( newBootstrap, channelPoolHandler, ChannelHealthChecker.ACTIVE, FixedChannelPool.AcquireTimeoutAction.FAIL, connectionPoolConfiguration.getAcquireTimeout().map(Duration::toMillis).orElse(-1L), maxConnections, connectionPoolConfiguration.getMaxPendingAcquires() ); } };