Class STATE_SOCK.StateProviderAcceptor

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

    protected class STATE_SOCK.StateProviderAcceptor
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IpAddress address  
      protected java.util.concurrent.ExecutorService pool  
      protected boolean running  
      protected java.net.ServerSocket serverSocket  
    • Constructor Summary

      Constructors 
      Constructor Description
      StateProviderAcceptor​(java.util.concurrent.ExecutorService pool, java.net.ServerSocket stateServingSocket)  
    • Field Detail

      • pool

        protected final java.util.concurrent.ExecutorService pool
      • serverSocket

        protected final java.net.ServerSocket serverSocket
      • running

        protected volatile boolean running
    • Constructor Detail

      • StateProviderAcceptor

        public StateProviderAcceptor​(java.util.concurrent.ExecutorService pool,
                                     java.net.ServerSocket stateServingSocket)
    • Method Detail

      • getServerSocketAddress

        public IpAddress getServerSocketAddress()
      • isRunning

        public boolean isRunning()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • process

        protected void process​(java.net.Socket socket)
      • stop

        public void stop()