com.tangosol.net
Class LoadBalancer.RequestHandler
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.net.LoadBalancer.SocketHandler
com.tangosol.net.LoadBalancer.RequestHandler
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- LoadBalancer
public class LoadBalancer.RequestHandler
- extends LoadBalancer.SocketHandler
A RequestHandler is a daemon thread that processes a request from a
queue.
Method Summary |
void |
run()
Processing loop for the RequestHandler daemon. |
Methods inherited from class com.tangosol.util.Daemon |
changeState, configureWorker, getConfiguredName, getConfiguredPriority, getDescription, getState, getThread, getThreadContextClassLoader, getWorker, instantiateWorker, isOnWorkerThread, isRunning, isStopping, setConfiguredName, setConfiguredPriority, setThreadContextClassLoader, start, stop, toStateString, toString |
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.
LoadBalancer.RequestHandler
public LoadBalancer.RequestHandler(LoadBalancer.Queue queue)
- Constructs a RequestHandler that will pull request connections
(Socket objects) from a Queue.
- Parameters:
queue
- a Queue of Socket objects
run
public void run()
- Processing loop for the RequestHandler daemon.
- Specified by:
run
in interface Runnable
- Specified by:
run
in class LoadBalancer.SocketHandler