Package org.h2.util
Class DebuggingThreadLocal<T>
java.lang.Object
org.h2.util.DebuggingThreadLocal<T>
- Type Parameters:
T
- the type
Similar to ThreadLocal, except that it allows its data to be read from other
threads - useful for debugging info.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
-
Constructor Details
-
DebuggingThreadLocal
public DebuggingThreadLocal()
-
-
Method Details
-
set
-
remove
public void remove()Remove the value for the current thread. -
get
-
getSnapshotOfAllThreads
Get a snapshot of the data of all threads.- Returns:
- a HashMap containing a mapping from thread-id to value
-