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