ThreadLocal variant which binds its value to current thread's
carrier thread.
| Modifier and Type | Field and Description |
|---|---|
| private static final JavaLangAccess |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | get()
Overrides java. Returns the value in the current thread's copy of this thread-local variable. |
| public void | remove()
Overrides java. Removes the current thread's value for this thread-local variable. |
| public void | set(T value)
Overrides java. Sets the current thread's copy of this thread-local variable to the specified value. |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| CarrierThreadLocal | back to summary |
|---|---|
| public CarrierThreadLocal() | |
| get | back to summary |
|---|---|
| public T get() Overrides java. Doc from java. Returns the value in the current thread's copy of this
thread-local variable. If the variable has no value for the
current thread, it is first initialized to the value returned
by an invocation of the
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides java. Doc from java. Removes the current thread's value for this thread-local
variable. If this thread-local variable is subsequently
read by the current thread, its value will be
reinitialized by invoking its
| |
| set | back to summary |
|---|---|
| public void set(T value) Overrides java. Doc from java. Sets the current thread's copy of this thread-local variable
to the specified value. Most subclasses will have no need to
override this method, relying solely on the
| |