Package com.alibaba.ttl
TTL API.
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
TransmittableThreadLocal
,TtlRunnable
,TtlCallable
,TtlUnwrap
,TtlWrappers
-
Interface Summary Interface Description TtlCopier<T> TtlCopier creates the value whenTransmittableThreadLocal.Transmitter.capture()
, use the created value whenTransmittableThreadLocal.Transmitter.replay(Object)
-
Class Summary Class Description TransmittableThreadLocal<T> TransmittableThreadLocal
(TTL
) can transmit value from the thread of submitting task to the thread of executing task.TransmittableThreadLocal.Transmitter TransmittableThreadLocal.Transmitter
transmit allTransmittableThreadLocal
and registeredThreadLocal
(registered byTransmittableThreadLocal.Transmitter.registerThreadLocal(java.lang.ThreadLocal<T>, com.alibaba.ttl.TtlCopier<T>)
) values of the current thread to other thread by static methodsTransmittableThreadLocal.Transmitter.capture()
=>TransmittableThreadLocal.Transmitter.replay(Object)
=>TransmittableThreadLocal.Transmitter.restore(Object)
(akaCRR
operation).TtlCallable<V> TtlCallable
decorateCallable
, so as to getTransmittableThreadLocal
and transmit it to the time ofCallable
execution, needed when useCallable
to thread pool.TtlRecursiveAction A recursive resultlessForkJoinTask
enhanced byTransmittableThreadLocal
.TtlRecursiveTask<V> A recursive result-bearingForkJoinTask
enhanced byTransmittableThreadLocal
.TtlRunnable TtlRunnable
decorateRunnable
, so as to getTransmittableThreadLocal
and transmit it to the time ofRunnable
execution, needed when useRunnable
to thread pool.TtlTimerTask Deprecated. TtlUnwrap Util methods for TTL Wrapper: unwrap TTL Wrapper and check TTL Wrapper.TtlWrappers Util methods for TTL Wrapper: wrap commonFunctional Interface
.