Package com.alibaba.ttl.spi
Interface TtlWrapper<T>
-
- All Superinterfaces:
TtlEnhanced
- All Known Subinterfaces:
DisableInheritableForkJoinWorkerThreadFactory,DisableInheritableThreadFactory
- All Known Implementing Classes:
TtlCallable,TtlRunnable,TtlTimerTask
public interface TtlWrapper<T> extends TtlEnhanced
Ttl Wrapper interface.- Since:
- 2.11.4
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
TtlUnwrap.unwrap(T)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tunwrap()unwrapTtlWrapperto the original/underneath one.
-
-
-
Method Detail
-
unwrap
@NonNull T unwrap()
unwrapTtlWrapperto the original/underneath one.this method is
null-safe, when inputBiFunctionparameter isnull, returnnull; if input parameter is not aTtlWrapperjust return input.so
unwrapwill always return the same input object.- See Also:
TtlUnwrap.unwrap(Object)
-
-