Package org.springframework.core
Class NamedThreadLocal<T>
- java.lang.Object
- java.lang.ThreadLocal<T>
- org.springframework.core.NamedThreadLocal<T>
- Type Parameters:
T
- the value type
public class NamedThreadLocal<T> extends ThreadLocal<T>
ThreadLocal
subclass that exposes a specified name astoString()
result (allowing for introspection).- Since:
- 2.5.2
- Author:
- Juergen Hoeller
- See Also:
NamedInheritableThreadLocal
Constructor Summary
Constructors Constructor Description NamedThreadLocal(String name)
Create a new NamedThreadLocal with the given name.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Methods inherited from class java.lang.ThreadLocal
get, initialValue, remove, set, withInitial