@Override public void stop() { if (isStop) { return; } isStop = true; System.out.println(); log.info("{}Blade shutdown ...", getStartedSymbol()); try { WebContext.clean(); if (this.bossGroup != null) { this.bossGroup.shutdownGracefully(); } if (this.workerGroup != null) { this.workerGroup.shutdownGracefully(); } log.info("{}Blade shutdown successful", getStartedSymbol()); } catch (Exception e) { log.error("Blade shutdown error", e); } }
@Override public void stop() { if (isStop) { return; } isStop = true; System.out.println(); log.info("{}Blade shutdown ...", getStartedSymbol()); try { WebContext.clean(); if (this.bossGroup != null) { this.bossGroup.shutdownGracefully(); } if (this.workerGroup != null) { this.workerGroup.shutdownGracefully(); } log.info("{}Blade shutdown successful", getStartedSymbol()); } catch (Exception e) { log.error("Blade shutdown error", e); } }
@Override public void stop() { if (isStop) { return; } isStop = true; System.out.println(); log.info("{}Blade shutdown ...", getStartedSymbol()); try { WebContext.clean(); if (this.bossGroup != null) { this.bossGroup.shutdownGracefully(); } if (this.workerGroup != null) { this.workerGroup.shutdownGracefully(); } log.info("{}Blade shutdown successful", getStartedSymbol()); } catch (Exception e) { log.error("Blade shutdown error", e); } }