Class BaseServerRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    VinciServerRunnable

    public class BaseServerRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    Runnable class used by BaseServer to concurrently service requests.
    • Field Detail

      • socket

        private java.net.Socket socket
      • THREAD_LOCAL_SOCKET

        private static final java.lang.ThreadLocal THREAD_LOCAL_SOCKET
    • 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:
        -
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable