Skip navigation links
com.tangosol.net
Class LoadBalancer.ResponseHandler
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.net.LoadBalancer.SocketHandler
com.tangosol.net.LoadBalancer.ResponseHandler
- All Implemented Interfaces:
- Guardable, java.lang.Runnable
- Enclosing class:
- LoadBalancer
-
public class LoadBalancer.ResponseHandler
- extends LoadBalancer.SocketHandler
A ResponseHandler is a daemon thread that processes an outgoing response from a destination server.
Method Summary |
void |
relayResponse(java.net.Socket socketServer, java.net.Socket socketClient)
This method is used to assign a task to the ResponseHandler thread from the RequestHandler thread. |
void |
run()
Processing loop for the ResponseHandler daemon. |
Methods inherited from class com.tangosol.util.Daemon |
changeState, configureWorker, ensureThreadGroup, finishStarting, finishStopping, getConfiguredName, getConfiguredPriority, getContext, getDescription, getGuardRegisterAction, getMaxWaitMillis, getState, getThread, getThreadContextClassLoader, getWorker, guardIfNeeded, heartbeat, heartbeat, instantiateWorker, isGuarded, isOnWorkerThread, isRunning, isStopping, recover, setConfiguredName, setConfiguredPriority, setContext, setGuardPolicy, setGuardRegisterAction, setThreadContextClassLoader, shutdown, start, stop, terminate, toStateString, toString |
m_daemonRequest
protected LoadBalancer.RequestHandler m_daemonRequest
- The RequestHandler that this ResponseHandler belongs to.
m_socketServer
protected java.net.Socket m_socketServer
- The Socket to read the response from.
m_socketClient
protected java.net.Socket m_socketClient
- The Socket to write the response to.
LoadBalancer.ResponseHandler
public LoadBalancer.ResponseHandler(LoadBalancer.RequestHandler daemonRequest)
- Construct a ResponseHandler that belongs to the specified RequestHandler.
- Parameters:
daemonRequest
- the RequestHandler that this ResponseHandler belongs to
run
public void run()
- Processing loop for the ResponseHandler daemon.
-
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class LoadBalancer.SocketHandler
relayResponse
public void relayResponse(java.net.Socket socketServer,
java.net.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
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.