public class ThreadLocalX<T> extends ThreadLocal<T>
| Constructor and Description |
|---|
ThreadLocalX() |
| Modifier and Type | Method and Description |
|---|---|
T |
getRemove()
Returns the value in the current thread's copy of this
thread-local variable and remove in time.
|
void |
set(T value)
Sets the current thread's copy of this thread-local variable
to the specified value.
|
get, initialValue, remove, withInitialpublic T getRemove()
ThreadLocal.initialValue() method.public void set(T value)
ThreadLocal.initialValue()
method to set the values of thread-locals.set in class ThreadLocal<T>value - the value to be stored in the current thread's copy of
this thread-local.Copyright © 2021. All rights reserved.