public class InheritableThreadLocal<T> extends ThreadLocal<T>
Thread,
ThreadLocal| Constructor and Description |
|---|
InheritableThreadLocal()
Creates a new inheritable thread-local variable.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
childValue(T parentValue)
Computes the initial value of this thread-local variable for the child
thread given the parent thread's value.
|
get, initialValue, remove, setpublic InheritableThreadLocal()
protected T childValue(T parentValue)
parentValue - the value of the variable in the parent thread.