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> TtlCopiercopies the value whenTransmittableThreadLocal.Transmitter.capture(), use the copied value whenTransmittableThreadLocal.Transmitter.replay(Object) -
Class Summary Class Description TransmittableThreadLocal<T> TransmittableThreadLocal(TTL) can transmit the value from the thread of submitting task to the thread of executing task.TransmittableThreadLocal.Transmitter TransmittableThreadLocal.Transmittertransmit allTransmittableThreadLocaland registeredThreadLocalvalues of the current thread to other thread.TtlCallable<V> TtlCallabledecorateCallableto getTransmittableThreadLocalvalue and transmit it to the time ofCallableexecution, needed when useCallableto thread pool.TtlRecursiveAction A recursive resultlessForkJoinTaskenhanced byTransmittableThreadLocal.TtlRecursiveTask<V> A recursive result-bearingForkJoinTaskenhanced byTransmittableThreadLocal.TtlRunnable TtlRunnabledecorateRunnableto getTransmittableThreadLocalvalue and 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.