Class TtlTimerTask

java.lang.Object
java.util.TimerTask
com.alibaba.ttl.TtlTimerTask
All Implemented Interfaces:
TtlEnhanced, TtlWrapper<TimerTask>, Runnable

@Deprecated public final class TtlTimerTask extends TimerTask implements TtlWrapper<TimerTask>, TtlEnhanced
Deprecated.
TtlTimerTask decorate TimerTask to get TransmittableThreadLocal value and transmit it to the time of TtlTimerTask execution, needed when use TtlTimerTask to TimerTask.

Use factory method get(TimerTask) to create instance.

NOTE: The TtlTimerTask make the method TimerTask.scheduledExecutionTime() in the origin TimerTask lose effectiveness! Use TtlAgent instead.

Since:
0.9.1
Author:
Jerry Lee (oldratlee at gmail dot com)
See Also: