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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface java.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.)