@@ -0,0 +1,582 @@
+package pro.simpleproject.core.intra.server;%0A%0Aimport java.util.concurrent.ExecutorService;%0Aimport java.util.concurrent.Executors;%0A%0Apublic class ServerExecutor %7B%0A%0A%09private static ExecutorService executor = Executors.newSingleThreadExecutor();%0A%0A%09private static Server server;%0A%0A%09public static void run(int port) %7B%0A%09%09if (server == null) %7B%0A%09%09%09executor.execute(() -%3E %7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09server = new Server(port);%0A%09%09%09%09%09server.run();%0A%09%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%7D);%0A%09%09%7D%0A%09%7D%0A%0A%09public static void close() %7B%0A%09%09if (server != null) %7B%0A%09%09%09server.close();%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create ServerExecutor.java