org.springframework.core
Class NamedThreadLocal<T>
java.lang.Object
java.lang.ThreadLocal<T>
org.springframework.core.NamedThreadLocal<T>
public class NamedThreadLocal<T>
- extends ThreadLocal<T>
ThreadLocal
subclass that exposes a specified name
as toString()
result (allowing for introspection).
- Since:
- 2.5.2
- Author:
- Juergen Hoeller
- See Also:
NamedInheritableThreadLocal
NamedThreadLocal
public NamedThreadLocal(String name)
- Create a new NamedThreadLocal with the given name.
- Parameters:
name
- a descriptive name for this ThreadLocal
toString
public String toString()
- Overrides:
toString
in class Object