Class TtlCallable<V>

java.lang.Object
com.alibaba.ttl.TtlCallable<V>
All Implemented Interfaces:
TtlAttachments, TtlEnhanced, TtlWrapper<Callable<V>>, Callable<V>

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

Use factory method get(Callable) to get decorated instance.

Other TTL Wrapper for common Functional Interface see TtlWrappers.

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