@Override public boolean isShutdown() { return group.isTerminated(); }
@Override public boolean isShutdown() { return group.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
if (!workerGroup.isTerminated()) { LOG.warn("Forcing shutdown of worker event loop..."); workerGroup.shutdownGracefully(0L, 0L, TimeUnit.MILLISECONDS); if (!bossGroup.isTerminated()) { LOG.warn("Forcing shutdown of boss event loop..."); bossGroup.shutdownGracefully(0L, 0L, TimeUnit.MILLISECONDS);
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return eventLoopGroup.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return eventLoopGroup.isTerminated(); }
@Override public boolean isTerminated() { return eventLoopGroup.isTerminated(); }
@Override public boolean isShutdown() { return group.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return delegate.isTerminated(); }
@Override public boolean isTerminated() { return eventLoopGroup.isTerminated(); }
/** Stops the server gracefully. */ public void stop() { if (bossGroup != null && !bossGroup.isTerminated()) { bossGroup.shutdownGracefully(); } if (workerGroup != null && !workerGroup.isTerminated()) { workerGroup.shutdownGracefully(); } LOG.info("AsyncServer gracefully shutdown"); }
/** Stops the server gracefully. */ public void stop() { if (bossGroup != null && !bossGroup.isTerminated()) { bossGroup.shutdownGracefully(); } if (workerGroup != null && !workerGroup.isTerminated()) { workerGroup.shutdownGracefully(); } LOG.info("AsyncServer gracefully shutdown"); }
/** * close the current connection gracefully. */ private void closeConnection() { try { if (!this.group.isTerminated()) { this.group.shutdownGracefully(); LOG.info("client gracefully shutdown"); } } catch (Exception e) { LOG.warn("Not able to close a client", e); } }