Class NamedThreadLocal<T>

java.lang.Object
java.lang.ThreadLocal<T>
org.apache.camel.util.concurrent.NamedThreadLocal<T>

@Deprecated(since="4.19.0") public final class NamedThreadLocal<T> extends ThreadLocal<T>
Deprecated.
Use ContextValue.newThreadLocal(String) or ContextValue.newThreadLocal(String, Supplier) instead. The ContextValue API provides better abstraction and will automatically use ScopedValue when running with virtual threads on JDK 25+.
A ThreadLocal with an assigned name that makes introspection and debugging easier.