- Direct Known Subclasses:
public class ThreadLocal<T>
Implements a thread-local storage, that is, a variable for which each thread
has its own value. All threads share the same
but each sees a different value when accessing it, and changes made by one
thread do not affect the other threads. The implementation supports
- See Also:
|Constructor and Description
Creates a new thread-local variable.
|Modifier and Type
||Method and Description
Returns the value of this variable for the current thread.
Provides the initial value of this variable for the current thread.
Removes the entry for this variable in the current thread.
Sets the value of this variable for the current thread.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public T get()
Returns the value of this variable for the current thread. If an entry
doesn't yet exist for this variable on this thread, this method will
create an entry, populating the value with the result of
- the current value of the variable for the calling thread.
public void remove()
Removes the entry for this variable in the current thread. If this call
is followed by a
and create a new
entry with the resulting value.
Java Enterprise Edition (EE)
Java Standard Edition (SE)
RFC (standard status)
RFC (proposed standard status)
RFC (draft standard status)
RFC (informational status)
RFC (experimental status)
RFC (best current practice status)
RFC (historic status)
RFC (unknown status)
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2186 / . Delta: 0.02428 с