TtlRunnable/TtlCallable) execute.TtlRunnable/TtlCallable) execute.Callable.call().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.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.Runnable.run().TimerTask.run().TransmittableThreadLocal can transmit value from the thread of submitting task to the thread of executing task.TtlCallable decorate Callable, so as to get TransmittableThreadLocal
and transmit it to the time of Callable execution, needed when use Callable to thread pool.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–2016 Alibaba. All rights reserved.