Package one.xingyi.core.server
Class SimpleServer
- java.lang.Object
-
- one.xingyi.core.server.SimpleServer
-
public class SimpleServer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SimpleServer(java.util.concurrent.Executor executor, com.sun.net.httpserver.HttpHandler handler, int port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddoAndThenStop(int port, EndPoint endPoints, ConsumerWithException<SimpleServer> consumer)voidstart()voidstop()voidstopAndKillExecutors()
-
-
-
Method Detail
-
doAndThenStop
public static void doAndThenStop(int port, EndPoint endPoints, ConsumerWithException<SimpleServer> consumer)
-
start
public void start()
-
stop
public void stop()
-
stopAndKillExecutors
public void stopAndKillExecutors()
-
-