Uses of Interface
com.alibaba.ttl.TtlCopier
Packages that use TtlCopier
-
Uses of TtlCopier in com.alibaba.ttl
Classes in com.alibaba.ttl that implement TtlCopierModifier and TypeClassDescriptionclass
TransmittableThreadLocal
(TTL
) can transmit the value from the thread of submitting task to the thread of executing task even using thread pooling components.Methods in com.alibaba.ttl with parameters of type TtlCopierModifier and TypeMethodDescriptionstatic <T> boolean
TransmittableThreadLocal.Transmitter.registerThreadLocal
(ThreadLocal<T> threadLocal, TtlCopier<T> copier) Register theThreadLocal
(including subclassInheritableThreadLocal
) instances to enhance the Transmittable ability for the existedThreadLocal
instances.static <T> boolean
TransmittableThreadLocal.Transmitter.registerThreadLocal
(ThreadLocal<T> threadLocal, TtlCopier<T> copier, boolean force) Register theThreadLocal
(including subclassInheritableThreadLocal
) instances to enhance the Transmittable ability for the existedThreadLocal
instances.static <S> TransmittableThreadLocal<S>
TransmittableThreadLocal.withInitialAndCopier
(Supplier<? extends S> supplier, TtlCopier<S> copierForChildValueAndCopy) Creates a transmittable thread local variable.static <S> TransmittableThreadLocal<S>
TransmittableThreadLocal.withInitialAndCopier
(Supplier<? extends S> supplier, TtlCopier<S> copierForChildValue, TtlCopier<S> copierForCopy) Creates a transmittable thread local variable.