public class ThreadLocalUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
INITIAL_SIZE |
protected static int |
TOTAL_THREAD_HINT |
Constructor and Description |
---|
ThreadLocalUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
getThreadLocalStorage(Object key)
retrieves an object from a hashmap associated with the current thread
|
static Object |
getTLS(Object key) |
static void |
putThreadLocalStorage(Object key,
Object value)
puts an object into a hashmap associated with the current thread
|
static void |
putTLS(Object key,
Object value) |
static void |
removeThreadLocalStorage(Object key)
removes an object from a hashmap associated with the current thread
|
static void |
removeTLS(Object key) |
protected static final int INITIAL_SIZE
protected static final int TOTAL_THREAD_HINT
public static void putThreadLocalStorage(Object key, Object value)
public static void removeThreadLocalStorage(Object key)
public static Object getThreadLocalStorage(Object key)
public static void removeTLS(Object key)