/** * Constructs an AsyncPool with an {@link NoopRateLimiter}. */ public AsyncPoolImpl(String name, Lifecycle<T> lifecycle, int maxSize, long idleTimeout, ScheduledExecutorService timeoutExecutor, ExecutorService callbackExecutor, int maxWaiters, Strategy strategy, int minSize) { this(name, lifecycle, maxSize, idleTimeout, timeoutExecutor, maxWaiters, strategy, minSize, new NoopRateLimiter()); }
@Override public AsyncPool<Channel> getPool(SocketAddress address) { return new AsyncSharedPoolImpl<>( address.toString(), new ChannelPoolLifecycle( address, _bootstrap, _allChannels, _tcpNoDelay), _scheduler, new NoopRateLimiter(), _idleTimeout, _createChannelImmediately, _maxPoolWaiterSize, SystemClock.instance(), NoopLongTracker.instance()); } }