Class NamedInheritableThreadLocal<T>

java.lang.Object
java.lang.ThreadLocal<T>
java.lang.InheritableThreadLocal<T>
org.springframework.core.NamedInheritableThreadLocal<T>
Type Parameters:
T - the value type

public class NamedInheritableThreadLocal<T> extends InheritableThreadLocal<T>
InheritableThreadLocal subclass that exposes a specified name as toString() result (allowing for introspection).
Since:
2.5.2
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • NamedInheritableThreadLocal

      public NamedInheritableThreadLocal(String name)
      Create a new NamedInheritableThreadLocal with the given name.
      Parameters:
      name - a descriptive name for this ThreadLocal
  • Method Details