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 as toString() result (allowing for introspection).
Since:
2.5.2
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • NamedThreadLocal

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