Class Service.ConnectionHandlerRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    Service

    protected class Service.ConnectionHandlerRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    A simple class that enables notification of ServiceHandler-s in a new thread.
    Author:
    christian
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.net.Socket clientSocket  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Notifies all registered handlers about a new client connection in a new thread.
      • Methods inherited from class java.lang.Object

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

      • clientSocket

        protected java.net.Socket clientSocket
    • Constructor Detail

      • ConnectionHandlerRunnable

        public ConnectionHandlerRunnable​(java.net.Socket aSocket,
                                         ServiceEnvironment environment)
    • Method Detail

      • run

        public void run()
        Notifies all registered handlers about a new client connection in a new thread.
        Specified by:
        run in interface java.lang.Runnable