public static class ThreadValue.ThreadLocalMap<T> extends Object implements ThreadValue<T>
ThreadValue.ThreadLocalMap<T>, ThreadValue.WeakReferenceThreadMap<T>
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<? extends T> |
threadLocal |
Constructor and Description |
---|
ThreadLocalMap(ThreadLocal<? extends T> threadLocal) |
Modifier and Type | Method and Description |
---|---|
Map<Thread,T> |
asMap() |
boolean |
canRetrieveAcrossThreads() |
T |
get() |
T |
getForThread(Thread thread) |
protected final ThreadLocal<? extends T> threadLocal
public ThreadLocalMap(ThreadLocal<? extends T> threadLocal)
public final boolean canRetrieveAcrossThreads()
canRetrieveAcrossThreads
in interface ThreadValue<T>
public final T get()
get
in interface ThreadValue<T>
public final T getForThread(Thread thread)
getForThread
in interface ThreadValue<T>
Copyright © 2009-2021 Performance Co-Pilot. All Rights Reserved.