Class NamedThreadLocal<T>
java.lang.Object
java.lang.ThreadLocal<T>
org.apache.camel.util.concurrent.NamedThreadLocal<T>
Deprecated.
A
ThreadLocal with an assigned name that makes introspection and debugging easier.-
Constructor Summary
ConstructorsConstructorDescriptionNamedThreadLocal(String name) Deprecated.NamedThreadLocal(String name, Supplier<T> supplier) Deprecated. -
Method Summary
Methods inherited from class ThreadLocal
get, remove, set, withInitial
-
Constructor Details
-
NamedThreadLocal
Deprecated. -
NamedThreadLocal
Deprecated.
-
-
Method Details
-
initialValue
-
toString
-
ContextValue.newThreadLocal(String)orContextValue.newThreadLocal(String, Supplier)instead. The ContextValue API provides better abstraction and will automatically use ScopedValue when running with virtual threads on JDK 25+.