@Test public void testReleaseHealthCheck() { final SimpleChannelPool healthCheckOnReleasePool = new SimpleChannelPool( new Bootstrap(), new CountingChannelPoolHandler(), ChannelHealthChecker.ACTIVE, true); try { assertTrue(healthCheckOnReleasePool.releaseHealthCheck()); } finally { healthCheckOnReleasePool.close(); } final SimpleChannelPool noHealthCheckOnReleasePool = new SimpleChannelPool( new Bootstrap(), new CountingChannelPoolHandler(), ChannelHealthChecker.ACTIVE, false); try { assertFalse(noHealthCheckOnReleasePool.releaseHealthCheck()); } finally { noHealthCheckOnReleasePool.close(); } }
protected boolean releaseHealthCheck() { return releaseHealthCheck; }
SimpleChannelPool implements ChannelPool { protected boolean releaseHealthCheck() { return releaseHealthCheck; } }
SimpleChannelPool implements ChannelPool { protected boolean releaseHealthCheck() { return releaseHealthCheck; } 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 boolean releaseHealthCheck() { return releaseHealthCheck; } 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 boolean releaseHealthCheck() { return releaseHealthCheck; } 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();  }