Class LoadBalancer.ResponseHandler

    • Field Detail

      • m_socketServer

        protected Socket m_socketServer
        The Socket to read the response from.
      • m_socketClient

        protected Socket m_socketClient
        The Socket to write the response to.
    • Constructor Detail

      • ResponseHandler

        public ResponseHandler​(LoadBalancer.RequestHandler daemonRequest)
        Construct a ResponseHandler that belongs to the specified RequestHandler.
        Parameters:
        daemonRequest - the RequestHandler that this ResponseHandler belongs to
    • Method Detail

      • relayResponse

        public void relayResponse​(Socket socketServer,
                                  Socket socketClient)
        This method is used to assign a task to the ResponseHandler thread from the RequestHandler thread.
        Parameters:
        socketServer - the socket to copy from
        socketClient - the socket to copy to