Package de.stefanreiser.net.server
Class Server
java.lang.Object
de.stefanreiser.net.server.Server
- All Implemented Interfaces:
java.lang.Runnable
public class Server
extends java.lang.Object
implements java.lang.Runnable
- Author:
- Stefan
-
Field Summary
Fields Modifier and Type Field Description static intSOCKET_TIMEOUT -
Method Summary
Modifier and Type Method Description static ServercreateServer(int port, boolean loopbackOnly, Loggable logger, WorkerThreadFactory serverThreadFactory)voidrun()voidshutdown()Notifies server to shutdown.
-
Field Details
-
SOCKET_TIMEOUT
public static final int SOCKET_TIMEOUT- See Also:
- Constant Field Values
-
-
Method Details
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable
-
createServer
public static Server createServer(int port, boolean loopbackOnly, Loggable logger, WorkerThreadFactory serverThreadFactory) -
shutdown
public void shutdown()Notifies server to shutdown. (Notification is checked within SOCKET_TIMEOUT milliseconds.)
-