public class InitialThreadLocal<T> extends CentralizedThreadLocal<T>
Constructor and Description |
---|
InitialThreadLocal(String name,
Supplier<T> supplier) |
InitialThreadLocal(String name,
Supplier<T> supplier,
boolean shortLived) |
InitialThreadLocal(String name,
T initialValue)
Deprecated.
As of 7.0.0, replaced by
InitialThreadLocal(String,
Supplier, boolean) |
InitialThreadLocal(String name,
T initialValue,
boolean shortLived)
Deprecated.
As of 7.0.0, replaced by
InitialThreadLocal(String,
Supplier, boolean) |
Modifier and Type | Method and Description |
---|---|
protected T |
initialValue() |
String |
toString() |
clearLongLivedThreadLocals, clearShortLivedThreadLocals, copy, equals, get, getLongLivedThreadLocals, getShortLivedThreadLocals, hashCode, remove, set, setThreadLocals
withInitial
@Deprecated public InitialThreadLocal(String name, T initialValue)
InitialThreadLocal(String,
Supplier, boolean)
@Deprecated public InitialThreadLocal(String name, T initialValue, boolean shortLived)
InitialThreadLocal(String,
Supplier, boolean)
protected T initialValue()
initialValue
in class ThreadLocal<T>