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 TransmittableThreadLocal.Transmitter.Transmittee<C,B> The transmittee is the extension point for otherThreadLocals which are registered byregisterTransmitteemethod.TtlCopier<T> TtlCopiercopies the value whenTransmitter#capture(), use the copied value whenTransmitter#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 even using thread pooling components.TransmittableThreadLocal.Transmitter 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.