public static class ThreadValue.WeakReferenceThreadMap<T> extends java.lang.Object implements ThreadValue<T>
ThreadValue.ThreadLocalMap<T>, ThreadValue.WeakReferenceThreadMap<T>| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.cache.LoadingCache<java.lang.Thread,T> |
loadingCache |
| Constructor and Description |
|---|
WeakReferenceThreadMap() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Thread,T> |
asMap() |
boolean |
canRetrieveAcrossThreads() |
T |
get() |
T |
getForThread(java.lang.Thread thread) |
protected T |
initialValue() |
protected final com.google.common.cache.LoadingCache<java.lang.Thread,T> loadingCache
protected T initialValue()
public final boolean canRetrieveAcrossThreads()
canRetrieveAcrossThreads in interface ThreadValue<T>public final T get()
get in interface ThreadValue<T>public final T getForThread(java.lang.Thread thread)
getForThread in interface ThreadValue<T>public final java.util.Map<java.lang.Thread,T> asMap()
asMap in interface ThreadValue<T>