TtlRunnable/TtlCallable) execute.TtlRunnable/TtlCallable) execute.Callable.call().TransmittableThreadLocal values in current thread.Callable to TtlCallable.Callable to TtlCallable.Callable to TtlCallable.Runnable to TtlRunnable.Runnable to TtlRunnable.Runnable to TtlRunnable.Runnable to TtlTimerTask.Runnable to TtlTimerTask.Runnable to TtlTimerTask.null.Runnable.Callable Collection to TtlCallable Collection.Callable Collection to TtlCallable Collection.Callable Collection to TtlCallable Collection.Runnable Collection to TtlRunnable Collection.Runnable Collection to TtlRunnable Collection.Runnable Collection to TtlRunnable Collection.TransmittableThreadLocal Wrapper of Executor,
transmit the TransmittableThreadLocal from the task submit time of Runnable
to the execution time of Runnable.TransmittableThreadLocal Wrapper of ExecutorService,
transmit the TransmittableThreadLocal from the task submit time of Runnable or Callable
to the execution time of Runnable or Callable.TransmittableThreadLocal Wrapper of ScheduledExecutorService,
transmit the TransmittableThreadLocal from the task submit time of Runnable or Callable
to the execution time of Runnable or Callable.TransmittableThreadLocal values from TransmittableThreadLocal.Transmitter.capture(),
and return the backup TransmittableThreadLocal values in current thread before replay.TransmittableThreadLocal values from TransmittableThreadLocal.Transmitter.replay(Object).Runnable.run().TimerTask.run().TransmittableThreadLocal.Transmitter.replay(Object) and TransmittableThreadLocal.Transmitter.restore(Object) operation.TransmittableThreadLocal.Transmitter.replay(Object) and TransmittableThreadLocal.Transmitter.restore(Object) operation.TransmittableThreadLocal can transmit value from the thread of submitting task to the thread of executing task.TransmittableThreadLocal.Transmitter transmit all TransmittableThreadLocal of current thread to
any other thread by static method TransmittableThreadLocal.Transmitter.capture() => TransmittableThreadLocal.Transmitter.replay(Object) => TransmittableThreadLocal.Transmitter.restore(Object) (aka CRR operation).TtlCallable decorate Callable, so as to get TransmittableThreadLocal
and transmit it to the time of Callable execution, needed when use Callable to thread pool.ForkJoinTask enhanced by TransmittableThreadLocal.ForkJoinTask enhanced by TransmittableThreadLocal.TtlRunnable decorate Runnable, so as to get TransmittableThreadLocal
and transmit it to the time of Runnable execution, needed when use Runnable to thread pool.TtlRunnable, ScheduledExecutorService instead of Timer, TimerTask.Copyright © 2013–2018 Alibaba. All rights reserved.