Class BaseServerRunnable

java.lang.Object
org.apache.vinci.transport.BaseServerRunnable
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
VinciServerRunnable

public class BaseServerRunnable extends Object implements Runnable
Runnable class used by BaseServer to concurrently service requests.
  • Constructor Details

    • BaseServerRunnable

      public BaseServerRunnable(Socket c, BaseServer p)
      Parameters:
      c - -
      p - -
  • Method Details

    • getSocket

      public static 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:
      run in interface Runnable
    • handleHeader

      public Transportable handleHeader(KeyValuePair header)