/** * Destroy the {@link ShareableWorkerPool} and release all resources. After this is called its not usable anymore */ public void destroy() { wrapped.shutdown(); if (wrapped instanceof ExternalResourceReleasable) { ((ExternalResourceReleasable) wrapped).releaseExternalResources(); } }
public void shutdown() { workerPool.shutdown(); if (releasePool) { releasePool(); } }
public void releaseExternalResources() { workerPool.shutdown(); 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(); } }
/** * Destroy the {@link ShareableWorkerPool} and release all resources. After this is called its not usable anymore */ public void destroy() { wrapped.shutdown(); if (wrapped instanceof ExternalResourceReleasable) { ((ExternalResourceReleasable) wrapped).releaseExternalResources(); } }
public void shutdown() { workerPool.shutdown(); if (releasePool) { releasePool(); } }
public void releaseExternalResources() { workerPool.shutdown(); releasePool(); }
public void releaseExternalResources() { workerPool.shutdown(); bossPool.shutdown(); releasePool(); }
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("ConnectionlessBootstrap disconnecting from {}:{}", configuration.getHost(), configuration.getPort()); LOG.trace("Closing {} channels", allChannels.size()); ChannelGroupFuture future = allChannels.close(); future.awaitUninterruptibly(); // close server external resources if (datagramChannelFactory != null) { datagramChannelFactory.releaseExternalResources(); datagramChannelFactory = null; } // and then shutdown the thread pools 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; } }
workerPool.shutdown();