Class TcpServerAcceptThread

  • All Implemented Interfaces:
    Runnable

    public class TcpServerAcceptThread
    extends Thread
    Thread to handle the ServerSocket.accept requests, and submit the sockets to the accept executor for validation.
    • Method Detail

      • run

        public void run()
        The main ServerSocket.accept() loop

        NOTE: When a connection is received, the Socket is checked after a brief delay in an attempt to determine if this is a load-balancer probe. The test is done before the ConsumerClientSocketThread is created to avoid creating a large number of short lived threads, which is what can occur if the load balancer polling interval is very short.

        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • interrupt

        public void interrupt()
        Overrides:
        interrupt in class Thread