Example usage for Java java.lang ThreadLocal fields, constructors, methods, implement or subclass
The text is from its open source code.
ThreadLocal() Creates a thread local variable. |
T | get() Returns the value in the current thread's copy of this thread-local variable. |
Class> | getClass() Returns the runtime class of this Object . |
void | remove() Removes the current thread's value for this thread-local variable. |
void | set(T value) Sets the current thread's copy of this thread-local variable to the specified value. |
ThreadLocal | withInitial(Supplier extends S> supplier) Creates a thread local variable. |