public void shutdown() { bossPool.shutdown(); workerPool.shutdown(); if (releasePools) { releasePools(); } }
private NioClientBoss nextBoss() { return bossPool.nextBoss(); }
public void releaseExternalResources() { bossPool.shutdown(); workerPool.shutdown(); releasePools(); }
public ServerSocketChannel newChannel(ChannelPipeline pipeline) { return new NioServerSocketChannel(this, pipeline, sink, bossPool.nextBoss(), workerPool); }
public void shutdown() { bossPool.shutdown(); workerPool.shutdown(); if (releasePools) { releasePools(); } }
private NioClientBoss nextBoss() { return bossPool.nextBoss(); }
public void releaseExternalResources() { bossPool.shutdown(); workerPool.shutdown(); releasePools(); }
public DatagramChannel newChannel(final ChannelPipeline pipeline) { return new NioDatagramChannel(this, pipeline, sink, bossPool.nextBoss(), family); }
public void releaseExternalResources() { workerPool.shutdown(); bossPool.shutdown(); releasePool(); }
public ServerSocketChannel newChannel(ChannelPipeline pipeline) { return new NioServerSocketChannel(this, pipeline, sink, bossPool.nextBoss(), workerPool); }
public void shutdown() { workerPool.shutdown(); bossPool.shutdown(); if (releasePool) { releasePool(); } }
public void shutdown() { bossPool.shutdown(); workerPool.shutdown(); if (releasePools) { releasePools(); } }
public void releaseExternalResources() { bossPool.shutdown(); workerPool.shutdown(); releasePools(); }
public void releaseExternalResources() { bossPool.shutdown(); workerPool.shutdown(); releasePools(); }
public void shutdown() { bossPool.shutdown(); workerPool.shutdown(); if (releasePools) { releasePools(); } }
protected void stopServerBootstrap() { // close all channels LOG.info("ServerBootstrap disconnecting from {}:{}", configuration.getHost(), configuration.getPort()); // close server external resources if (channelFactory != null) { channelFactory.releaseExternalResources(); channelFactory = null; } // and then shutdown the thread pools if (bossPool != null) { bossPool.shutdown(); bossPool = null; } if (workerPool != null) { workerPool.shutdown(); workerPool = null; } }
protected void stopServerBootstrap() { // close all channels LOG.info("ServerBootstrap unbinding from {}:{}", configuration.getHost(), configuration.getPort()); LOG.trace("Closing {} channels", allChannels.size()); ChannelGroupFuture future = allChannels.close(); future.awaitUninterruptibly(); // close server external resources if (channelFactory != null) { channelFactory.releaseExternalResources(); channelFactory = null; } // and then shutdown the thread pools if (bossPool != null) { bossPool.shutdown(); bossPool = null; } if (workerPool != null) { workerPool.shutdown(); workerPool = null; } }
bossPool.shutdown(); bossPool = null;