Package com.alibaba.ttl
TTL API.
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
TransmittableThreadLocal,TtlRunnable,TtlCallable
-
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> TransmittableThreadLocalcan transmit value from the thread of submitting task to the thread of executing task.TransmittableThreadLocal.Transmitter TransmittableThreadLocal.Transmittertransmit allTransmittableThreadLocaland 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)(akaCRRoperation).TtlCallable<V> TtlCallabledecorateCallable, so as to getTransmittableThreadLocaland transmit it to the time ofCallableexecution, needed when useCallableto thread pool.TtlRecursiveAction A recursive resultlessForkJoinTaskenhanced byTransmittableThreadLocal.TtlRecursiveTask<V> A recursive result-bearingForkJoinTaskenhanced byTransmittableThreadLocal.TtlRunnable TtlRunnabledecorateRunnable, so as to getTransmittableThreadLocaland transmit it to the time ofRunnableexecution, needed when useRunnableto 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.