public class ThreadLocalX<T> extends ThreadLocal<T>
| 构造器和说明 |
|---|
ThreadLocalX() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 ThreadLocal<T>value - the value to be stored in the current thread's copy of
this thread-local.Copyright © 2020. All rights reserved.