Package org.apache.vinci.transport
Class BaseServerRunnable
- java.lang.Object
-
- org.apache.vinci.transport.BaseServerRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
VinciServerRunnable
public class BaseServerRunnable extends java.lang.Object implements java.lang.RunnableRunnable class used by BaseServer to concurrently service requests.
-
-
Constructor Summary
Constructors Constructor Description BaseServerRunnable(java.net.Socket c, BaseServer p)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseServergetParent()static java.net.SocketgetSocket()Allows anyone in the calling chain of the 'run' method to get access to the socket being used in the Vinci connection via the ThreadLocal variable.TransportablehandleHeader(KeyValuePair header)voidrun()
-
-
-
Constructor Detail
-
BaseServerRunnable
public BaseServerRunnable(java.net.Socket c, BaseServer p)- Parameters:
c- -p- -
-
-
Method Detail
-
getSocket
public static java.net.Socket getSocket()
Allows anyone in the calling chain of the 'run' method to get access to the socket being used in the Vinci connection via the ThreadLocal variable.- Returns:
- -
-
getParent
protected BaseServer getParent()
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
handleHeader
public Transportable handleHeader(KeyValuePair header)
-
-