Package io.perfmark.impl
Class ConcurrentThreadLocal<T>
- java.lang.Object
-
- io.perfmark.impl.ConcurrentThreadLocal<T>
-
public class ConcurrentThreadLocal<T> extends java.lang.ObjectA "thread local" variable that uses weak refs to track the thread to value mapping. This class is useful whenThreadLocalinstances are inconvenient.Like All classes in this package, this class is not API stable.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentThreadLocal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddrainQueue()private voiddrainQueue(java.lang.ref.Reference<? extends java.lang.Thread> ref)Tget()protected TinitialValue()private TinitialValueInternal()voidremove()voidset(T value)
-
-
-
Method Detail
-
get
public T get()
-
remove
public void remove()
-
set
public void set(T value)
-
initialValue
protected T initialValue()
-
initialValueInternal
private T initialValueInternal()
-
drainQueue
private void drainQueue()
-
drainQueue
private void drainQueue(java.lang.ref.Reference<? extends java.lang.Thread> ref)
-
-