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 int
SOCKET_TIMEOUT
-
Method Summary
Modifier and Type Method Description static Server
createServer(int port, boolean loopbackOnly, Loggable logger, WorkerThreadFactory serverThreadFactory)
void
run()
void
shutdown()
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:
run
in 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.)
-