public class ThreadLocalManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Long,ThreadLocal> |
threadLocals |
| Constructor and Description |
|---|
ThreadLocalManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addThreadLocal(ThreadLocal threadLocal) |
static <T> ThreadLocal<T> |
createThreadLocal(Class<T> type) |
static <T> ThreadLocal<T> |
createThreadLocal(Class<T> type,
boolean createInitialValue) |
static void |
remove() |
protected Map<Long,ThreadLocal> threadLocals
public static void addThreadLocal(ThreadLocal threadLocal)
public static <T> ThreadLocal<T> createThreadLocal(Class<T> type)
public static <T> ThreadLocal<T> createThreadLocal(Class<T> type, boolean createInitialValue)
public static void remove()
Copyright © 2014. All rights reserved.