Class DetachedThreadLocal<T>
java.lang.Object
org.mockito.internal.util.concurrent.DetachedThreadLocal<T>
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDetermines the cleaning format. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclearAll()Clears all thread local references for all threads.voidget()protected TinheritValue(T value) protected TinitialValue(Thread thread) voidrun()void
-
Field Details
-
map
-
-
Constructor Details
-
DetachedThreadLocal
-
-
Method Details
-
get
-
get
-
set
-
clear
public void clear() -
clearAll
public void clearAll()Clears all thread local references for all threads. -
pushTo
-
fetchFrom
-
define
-
initialValue
-
inheritValue
-
getBackingMap
- Returns:
- The weak map that backs this detached thread local.
-
run
-