public final class TtlExecutors extends Object
| Modifier and Type | Method and Description |
|---|---|
static Executor |
getTtlExecutor(Executor executor)
TransmittableThreadLocal Wrapper of Executor,
transmit the TransmittableThreadLocal from the task submit time of Runnable
to the execution time of Runnable. |
static ExecutorService |
getTtlExecutorService(ExecutorService executorService)
TransmittableThreadLocal Wrapper of ExecutorService,
transmit the TransmittableThreadLocal from the task submit time of Runnable or Callable
to the execution time of Runnable or Callable. |
static ScheduledExecutorService |
getTtlScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
TransmittableThreadLocal Wrapper of ScheduledExecutorService,
transmit the TransmittableThreadLocal from the task submit time of Runnable or Callable
to the execution time of Runnable or Callable. |
public static Executor getTtlExecutor(Executor executor)
TransmittableThreadLocal Wrapper of Executor,
transmit the TransmittableThreadLocal from the task submit time of Runnable
to the execution time of Runnable.public static ExecutorService getTtlExecutorService(ExecutorService executorService)
TransmittableThreadLocal Wrapper of ExecutorService,
transmit the TransmittableThreadLocal from the task submit time of Runnable or Callable
to the execution time of Runnable or Callable.public static ScheduledExecutorService getTtlScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
TransmittableThreadLocal Wrapper of ScheduledExecutorService,
transmit the TransmittableThreadLocal from the task submit time of Runnable or Callable
to the execution time of Runnable or Callable.Copyright © 2013–2017 Alibaba. All rights reserved.