Class LoadBalancer.RequestHandler

All Implemented Interfaces:
Guardable, Runnable
Enclosing class:
LoadBalancer

public class LoadBalancer.RequestHandler extends LoadBalancer.SocketHandler
A RequestHandler is a daemon thread that processes a request from a queue.
  • Field Details

    • m_queue

      protected LoadBalancer.Queue m_queue
      The Queue that this RequestHandler listens to connections (Socket) on.
    • m_daemonResponse

      protected LoadBalancer.ResponseHandler m_daemonResponse
      The ResponseHandler that handles the server-to-client response routing corresponding to requests routed client-to-server by this daemon.
  • Constructor Details

    • RequestHandler

      public RequestHandler(LoadBalancer.Queue queue)
      Constructs a RequestHandler that will pull request connections (Socket objects) from a Queue.
      Parameters:
      queue - a Queue of Socket objects
  • Method Details