@Override public void shutdown() { try { if (null != clientChannelPool) { clientChannelPool.close(); } this.eventLoopGroupWorker.shutdownGracefully(); if (this.defaultEventExecutorGroup != null) { this.defaultEventExecutorGroup.shutdownGracefully(); } super.destroy(); } catch (Exception exx) { LOGGER.error("shutdown error:" + exx.getMessage()); } }
@Override public void close() throws IOException { internalPoolMap.close(); }
@Override public synchronized void stop() { if (poolMap != null) { poolMap.close(); } if (null != workerGroup) { workerGroup.shutdownGracefully(0, 1, TimeUnit.SECONDS).syncUninterruptibly(); workerGroup = null; } }
@Override public void shutdown() { try { if (null != clientChannelPool) { clientChannelPool.close(); } this.eventLoopGroupWorker.shutdownGracefully(); if (this.defaultEventExecutorGroup != null) { this.defaultEventExecutorGroup.shutdownGracefully(); } super.destroy(); } catch (Exception exx) { LOGGER.error("shutdown error:" + exx.getMessage()); } }