INNER CODE UNIT · Java

destroy

luxiaoxun/Code4Java · MapHttpService/src/main/java/com/luxx/map/MapHttpServer.java:65

    public void destroy() {
        if (eventExecutorGroup != null) {
            eventExecutorGroup.shutdownGracefully();
        }
        if (workerGroup != null) {
            workerGroup.shutdownGracefully();
        }
        if (bossGroup != null) {
            bossGroup.shutdownGracefully();
        }

        log.info("Map Http Server is shut down");
    }

    public static void main(String[] args) {
        final String portString = PropertiesUtil.getInstance().GetListenPort();
        final int port = Integer.parseInt(portString);
        boolean isOK = MapDbOperation.init();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…