public class NamedThreadLocal<T>
extends java.lang.ThreadLocal<T>
ThreadLocal
subclass that exposes a specified name
as toString()
result (allowing for introspection).NamedInheritableThreadLocal
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
Constructor and Description |
---|
NamedThreadLocal(java.lang.String name)
Create a new NamedThreadLocal with the given name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |