Class ConnectionExecutionContext


  • public class ConnectionExecutionContext
    extends Object
    This class that implements ConnectionExecutionContext that gets stored in Thread Local Storage. If the current thread creates child threads, the context info that is stored in the current thread is automatically propagated to the child threads. Two class methods serve as a convenient way to set/get the Context information within the current thread.
    See Also:
    ThreadLocal, InheritableThreadLocal
    • Constructor Detail

      • ConnectionExecutionContext

        public ConnectionExecutionContext()
    • Method Detail

      • readClientThreadID

        public static Long readClientThreadID()
      • setClientThreadID

        public static void setClientThreadID​(Long ClientThreadID)
      • removeClientThreadID

        public static void removeClientThreadID()
      • setContext

        public static void setContext​(Hashtable<String,​Object> ctxTable)
        This method can be used to add a new hashtable for storing the Thread specific context information. This method is useful to add a deserialized Context information that arrived over the wire.
        Parameters:
        A - hashtable that stores the current thread's context information.
      • getContext

        public static Hashtable<String,​Object> getContext()
        This method returns the hashtable that stores the thread specific Context information.
        Returns:
        The Context object stored in the current TLS. It always returns a non null value;