Package com.webmethods.caf.common
Class ThreadLocalUtil
java.lang.Object
com.webmethods.caf.common.ThreadLocalUtil
Utility class with base methods for thread control and grouping.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
retrieves an object from a hashmap associated with the current threadstatic Object
static void
putThreadLocalStorage
(Object key, Object value) puts an object into a hashmap associated with the current threadstatic void
static void
removes an object from a hashmap associated with the current threadstatic void
-
Field Details
-
INITIAL_SIZE
protected static final int INITIAL_SIZE- See Also:
-
TOTAL_THREAD_HINT
protected static final int TOTAL_THREAD_HINT- See Also:
-
-
Constructor Details
-
ThreadLocalUtil
public ThreadLocalUtil()
-
-
Method Details
-
putThreadLocalStorage
puts an object into a hashmap associated with the current thread -
removeThreadLocalStorage
removes an object from a hashmap associated with the current thread -
getThreadLocalStorage
retrieves an object from a hashmap associated with the current thread -
putTLS
-
getTLS
-
removeTLS
-