@Test public void testHandler() { final ChannelPoolHandler handler = new CountingChannelPoolHandler(); final SimpleChannelPool pool = new SimpleChannelPool(new Bootstrap(), handler); try { assertSame(handler, pool.handler()); } finally { pool.close(); } }
protected ChannelPoolHandler handler() { return handler; }
SimpleChannelPool implements ChannelPool { protected ChannelPoolHandler handler() { return handler; } }
SimpleChannelPool implements ChannelPool { protected ChannelPoolHandler handler() { return handler; } SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck,
                             boolean releaseHealthCheck);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck,
                             boolean releaseHealthCheck, boolean lastRecentUsed); }
SimpleChannelPool implements ChannelPool { protected ChannelPoolHandler handler() { return handler; } SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck,
                             boolean releaseHealthCheck);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck,
                             boolean releaseHealthCheck, boolean lastRecentUsed); @Override final Future<Channel> acquire(); @Override Future<Channel> acquire(final Promise<Channel> promise); @Override final Future<Void> release(Channel channel); @Override Future<Void> release(final Channel channel, final Promise<Void> promise); @Override void close(); }
SimpleChannelPool implements ChannelPool { protected ChannelPoolHandler handler() { return handler; } SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck,
                             boolean releaseHealthCheck);  SimpleChannelPool(Bootstrap bootstrap, final ChannelPoolHandler handler, ChannelHealthChecker healthCheck,
                             boolean releaseHealthCheck, boolean lastRecentUsed); @Override final Future<Channel> acquire(); @Override Future<Channel> acquire(final Promise<Channel> promise); @Override final Future<Void> release(Channel channel); @Override Future<Void> release(final Channel channel, final Promise<Void> promise); @Override void close();  }