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
ThreadLocal
subclass that exposes a specified name
as toString()
result (allowing for introspection).- Since:
- 2.5.2
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionNamedThreadLocal
(String name) Create a new NamedThreadLocal with the given name. -
Method Summary
Methods inherited from class java.lang.ThreadLocal
get, initialValue, remove, set, withInitial