public static class ThreadValue.WeakReferenceThreadMap<T> extends Object implements ThreadValue<T>
ThreadValue.ThreadLocalMap<T>, ThreadValue.WeakReferenceThreadMap<T>
Modifier and Type | Field and Description |
---|---|
protected com.google.common.cache.LoadingCache<Thread,T> |
loadingCache |
Constructor and Description |
---|
WeakReferenceThreadMap() |
Modifier and Type | Method and Description |
---|---|
Map<Thread,T> |
asMap() |
boolean |
canRetrieveAcrossThreads() |
T |
get() |
T |
getForThread(Thread thread) |
protected T |
initialValue() |
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(Thread thread)
getForThread
in interface ThreadValue<T>
Copyright © 2009-2019 Performance Co-Pilot. All Rights Reserved.