Class TtlRunnable

java.lang.Object
com.alibaba.ttl.TtlRunnable
All Implemented Interfaces:
TtlAttachments, TtlEnhanced, TtlWrapper<Runnable>, Runnable

public final class TtlRunnable extends Object implements Runnable, TtlWrapper<Runnable>, TtlEnhanced, TtlAttachments
TtlRunnable decorate Runnable to get TransmittableThreadLocal value and transmit it to the time of Runnable execution, needed when use Runnable to thread pool.

Use factory methods get(java.lang.Runnable) / gets(java.util.Collection<? extends java.lang.Runnable>) to create instance.

Other TTL Wrapper for common Functional Interface see TtlWrappers.

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