Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- afterExecute() - Method in class com.alibaba.ttl.TransmittableThreadLocal
-
Callback method after task object(
TtlRunnable
/TtlCallable
) execute.
B
- beforeExecute() - Method in class com.alibaba.ttl.TransmittableThreadLocal
-
Callback method before task object(
TtlRunnable
/TtlCallable
) execute.
C
- call() - Method in class com.alibaba.ttl.TtlCallable
-
wrap method
Callable.call()
. - cancel() - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.
- capture() - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Capture all
TransmittableThreadLocal
and registeredThreadLocal
values in the current thread. - capture() - Method in interface com.alibaba.ttl.TransmittableThreadLocal.Transmitter.Transmittee
-
Capture.
- clear() - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Clear all
TransmittableThreadLocal
and registeredThreadLocal
values in the current thread, and return the backupTransmittableThreadLocal
values in the current thread before clear. - clear() - Method in interface com.alibaba.ttl.TransmittableThreadLocal.Transmitter.Transmittee
-
Clear.
- com.alibaba.ttl - package com.alibaba.ttl
-
TTL API.
- com.alibaba.ttl.spi - package com.alibaba.ttl.spi
-
TTL SPI
- com.alibaba.ttl.threadpool - package com.alibaba.ttl.threadpool
-
Thread pool wrap/decoration utils.
- com.alibaba.ttl.threadpool.agent - package com.alibaba.ttl.threadpool.agent
-
TTL Agent.
- compute() - Method in class com.alibaba.ttl.TtlRecursiveAction
-
The main computation performed by this task.
- compute() - Method in class com.alibaba.ttl.TtlRecursiveTask
-
The main computation performed by this task.
- copy(T) - Method in class com.alibaba.ttl.TransmittableThreadLocal
-
Computes the value for this transmittable thread-local variable as a function of the source thread's value at the time the task Object is created.
- copy(T) - Method in interface com.alibaba.ttl.TtlCopier
-
Computes the value for
TransmittableThreadLocal
or registeredThreadLocal
(registered by methodTransmitter#registerThreadLocal
) as a function of the source thread's value at the time the task Object is created.
D
- DisableInheritableForkJoinWorkerThreadFactory - Interface in com.alibaba.ttl.threadpool
-
Disable inheritable
ForkJoinPool.ForkJoinWorkerThreadFactory
. - DisableInheritableThreadFactory - Interface in com.alibaba.ttl.threadpool
-
Disable inheritable
ThreadFactory
.
E
- equals(Object) - Method in class com.alibaba.ttl.TtlCallable
- equals(Object) - Method in class com.alibaba.ttl.TtlRunnable
- equals(Object) - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.
- exec() - Method in class com.alibaba.ttl.TtlRecursiveAction
-
Implements execution conventions for RecursiveActions.
- exec() - Method in class com.alibaba.ttl.TtlRecursiveTask
-
Implements execution conventions for RecursiveTask.
G
- get() - Method in class com.alibaba.ttl.TransmittableThreadLocal
- get(Runnable) - Static method in class com.alibaba.ttl.TtlRunnable
-
Factory method, wrap input
Runnable
toTtlRunnable
. - get(Runnable, boolean) - Static method in class com.alibaba.ttl.TtlRunnable
-
Factory method, wrap input
Runnable
toTtlRunnable
. - get(Runnable, boolean, boolean) - Static method in class com.alibaba.ttl.TtlRunnable
-
Factory method, wrap input
Runnable
toTtlRunnable
. - get(Callable<T>) - Static method in class com.alibaba.ttl.TtlCallable
-
Factory method, wrap input
Callable
toTtlCallable
. - get(Callable<T>, boolean) - Static method in class com.alibaba.ttl.TtlCallable
-
Factory method, wrap input
Callable
toTtlCallable
. - get(Callable<T>, boolean, boolean) - Static method in class com.alibaba.ttl.TtlCallable
-
Factory method, wrap input
Callable
toTtlCallable
. - get(TimerTask) - Static method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.Factory method, wrap input
TimerTask
toTtlTimerTask
. - get(TimerTask, boolean) - Static method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.Factory method, wrap input
TimerTask
toTtlTimerTask
. - get(TimerTask, boolean, boolean) - Static method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.Factory method, wrap input
TimerTask
toTtlTimerTask
. - getCallable() - Method in class com.alibaba.ttl.TtlCallable
-
return the original/underneath
Callable
. - getDefaultDisableInheritableForkJoinWorkerThreadFactory() - Static method in class com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper
-
Wrapper of
ForkJoinPool.defaultForkJoinWorkerThreadFactory
, disable inheritable. - getDefaultDisableInheritableThreadFactory() - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
Wrapper of
Executors.defaultThreadFactory()
, disable inheritable. - getDisableInheritableForkJoinWorkerThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory) - Static method in class com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper
-
Wrapper of
ForkJoinPool.ForkJoinWorkerThreadFactory
, disable inheritable. - getDisableInheritableThreadFactory(ThreadFactory) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
Wrapper of
ThreadFactory
, disable inheritable. - getRawResult() - Method in class com.alibaba.ttl.TtlRecursiveAction
- getRawResult() - Method in class com.alibaba.ttl.TtlRecursiveTask
- getRunnable() - Method in class com.alibaba.ttl.TtlRunnable
-
return original/unwrapped
Runnable
. - gets(Collection<? extends Runnable>) - Static method in class com.alibaba.ttl.TtlRunnable
-
wrap input
Runnable
Collection toTtlRunnable
Collection. - gets(Collection<? extends Runnable>, boolean) - Static method in class com.alibaba.ttl.TtlRunnable
-
wrap input
Runnable
Collection toTtlRunnable
Collection. - gets(Collection<? extends Runnable>, boolean, boolean) - Static method in class com.alibaba.ttl.TtlRunnable
-
wrap input
Runnable
Collection toTtlRunnable
Collection. - gets(Collection<? extends Callable<T>>) - Static method in class com.alibaba.ttl.TtlCallable
-
wrap input
Callable
Collection toTtlCallable
Collection. - gets(Collection<? extends Callable<T>>, boolean) - Static method in class com.alibaba.ttl.TtlCallable
-
wrap input
Callable
Collection toTtlCallable
Collection. - gets(Collection<? extends Callable<T>>, boolean, boolean) - Static method in class com.alibaba.ttl.TtlCallable
-
wrap input
Callable
Collection toTtlCallable
Collection. - getTimerTask() - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.return original/unwrapped
TimerTask
. - getTtlAttachment(String) - Method in interface com.alibaba.ttl.spi.TtlAttachments
-
get the TTL attachment for TTL tasks
- getTtlAttachment(String) - Method in class com.alibaba.ttl.spi.TtlAttachmentsDelegate
- getTtlAttachment(String) - Method in class com.alibaba.ttl.TtlCallable
- getTtlAttachment(String) - Method in class com.alibaba.ttl.TtlRunnable
- getTtlExecutor(Executor) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
TransmittableThreadLocal
Wrapper ofExecutor
, transmit theTransmittableThreadLocal
from the task submit time ofRunnable
to the execution time ofRunnable
. - getTtlExecutorService(ExecutorService) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
TransmittableThreadLocal
Wrapper ofExecutorService
, transmit theTransmittableThreadLocal
from the task submit time ofRunnable
orCallable
to the execution time ofRunnable
orCallable
. - getTtlRunnableUnwrapComparator(Comparator<Runnable>) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
Wrapper of
Comparator<Runnable>
which unwrapTtlRunnable
before compare, akaTtlRunnableUnwrapComparator
. - getTtlRunnableUnwrapComparatorForComparableRunnable() - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
TtlRunnableUnwrapComparator
that comparesComparable
objects. - getTtlScheduledExecutorService(ScheduledExecutorService) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
TransmittableThreadLocal
Wrapper ofScheduledExecutorService
, transmit theTransmittableThreadLocal
from the task submit time ofRunnable
orCallable
to the execution time ofRunnable
orCallable
.
H
- hashCode() - Method in class com.alibaba.ttl.TtlCallable
- hashCode() - Method in class com.alibaba.ttl.TtlRunnable
- hashCode() - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.
I
- isDisableInheritableForkJoinWorkerThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory) - Static method in class com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper
-
check the
ForkJoinPool.ForkJoinWorkerThreadFactory
isDisableInheritableForkJoinWorkerThreadFactory
or not. - isDisableInheritableForThreadPool() - Static method in class com.alibaba.ttl.threadpool.agent.TtlAgent
-
Whether disable inheritable for thread pool is enhanced by ttl agent, check
TtlAgent.isTtlAgentLoaded()
first. - isDisableInheritableThreadFactory(ThreadFactory) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
check the
ThreadFactory
isDisableInheritableThreadFactory
or not. - isEnableTimerTask() - Static method in class com.alibaba.ttl.threadpool.agent.TtlAgent
-
Whether timer task is enhanced by ttl agent, check
TtlAgent.isTtlAgentLoaded()
first. - isTtlAgentLoaded() - Static method in class com.alibaba.ttl.threadpool.agent.TtlAgent
-
Whether TTL agent is loaded.
- isTtlRunnableUnwrapComparator(Comparator<Runnable>) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
check the
Comparator<Runnable>
is a wrapperTtlRunnableUnwrapComparator
or not. - isTtlWrapper(T) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
check the executor is a TTL executor wrapper or not.
- isWrapper(T) - Static method in class com.alibaba.ttl.TtlUnwrap
-
check the input object is a
TtlWrapper
or not.
K
- KEY_IS_AUTO_WRAPPER - Static variable in interface com.alibaba.ttl.spi.TtlAttachments
-
The attachment key of TTL task, weather this task is a auto wrapper task.
P
- premain(String, Instrumentation) - Static method in class com.alibaba.ttl.threadpool.agent.TtlAgent
-
Entrance method of TTL Java Agent.
R
- registerThreadLocal(ThreadLocal<T>, TtlCopier<T>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Register the
ThreadLocal
(including subclassInheritableThreadLocal
) instances to enhance the Transmittable ability for the existedThreadLocal
instances. - registerThreadLocal(ThreadLocal<T>, TtlCopier<T>, boolean) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Register the
ThreadLocal
(including subclassInheritableThreadLocal
) instances to enhance the Transmittable ability for the existedThreadLocal
instances. - registerThreadLocalWithShadowCopier(ThreadLocal<T>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Register the
ThreadLocal
(including subclassInheritableThreadLocal
) instances to enhance the Transmittable ability for the existedThreadLocal
instances. - registerThreadLocalWithShadowCopier(ThreadLocal<T>, boolean) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Register the
ThreadLocal
(including subclassInheritableThreadLocal
) instances to enhance the Transmittable ability for the existedThreadLocal
instances. - registerTransmittee(TransmittableThreadLocal.Transmitter.Transmittee<C, B>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Register the transmittee(
CRR
), the extension point for otherThreadLocal
. - remove() - Method in class com.alibaba.ttl.TransmittableThreadLocal
- replay(C) - Method in interface com.alibaba.ttl.TransmittableThreadLocal.Transmitter.Transmittee
-
Replay.
- replay(Object) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Replay the captured
TransmittableThreadLocal
and registeredThreadLocal
values fromTransmittableThreadLocal.Transmitter.capture()
, and return the backupTransmittableThreadLocal
values in the current thread before replay. - restore(B) - Method in interface com.alibaba.ttl.TransmittableThreadLocal.Transmitter.Transmittee
-
Restore.
- restore(Object) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Restore the backup
TransmittableThreadLocal
and registeredThreadLocal
values fromTransmittableThreadLocal.Transmitter.replay(Object)
/TransmittableThreadLocal.Transmitter.clear()
. - run() - Method in class com.alibaba.ttl.TtlRunnable
-
wrap method
Runnable.run()
. - run() - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.wrap method
TimerTask.run()
. - runCallableWithCaptured(Object, Callable<R>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Util method for simplifying
TransmittableThreadLocal.Transmitter.replay(Object)
andTransmittableThreadLocal.Transmitter.restore(Object)
operations. - runCallableWithClear(Callable<R>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Util method for simplifying
TransmittableThreadLocal.Transmitter.clear()
andTransmittableThreadLocal.Transmitter.restore(Object)
operations. - runSupplierWithCaptured(Object, Supplier<R>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Util method for simplifying
TransmittableThreadLocal.Transmitter.replay(Object)
andTransmittableThreadLocal.Transmitter.restore(Object)
operations. - runSupplierWithClear(Supplier<R>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Util method for simplifying
TransmittableThreadLocal.Transmitter.clear()
andTransmittableThreadLocal.Transmitter.restore(Object)
operations.
S
- set(T) - Method in class com.alibaba.ttl.TransmittableThreadLocal
- setRawResult(Void) - Method in class com.alibaba.ttl.TtlRecursiveAction
- setRawResult(V) - Method in class com.alibaba.ttl.TtlRecursiveTask
- setTtlAttachment(String, Object) - Method in interface com.alibaba.ttl.spi.TtlAttachments
-
set the TTL attachments for TTL tasks
- setTtlAttachment(String, Object) - Method in class com.alibaba.ttl.spi.TtlAttachmentsDelegate
- setTtlAttachment(String, Object) - Method in class com.alibaba.ttl.TtlCallable
- setTtlAttachment(String, Object) - Method in class com.alibaba.ttl.TtlRunnable
T
- toString() - Method in class com.alibaba.ttl.TtlCallable
- toString() - Method in class com.alibaba.ttl.TtlRunnable
- toString() - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.
- transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class com.alibaba.ttl.threadpool.agent.TtlTransformer
- TransmittableThreadLocal<T> - Class in com.alibaba.ttl
-
TransmittableThreadLocal
(TTL
) can transmit the value from the thread of submitting task to the thread of executing task even using thread pooling components. - TransmittableThreadLocal() - Constructor for class com.alibaba.ttl.TransmittableThreadLocal
-
Default constructor.
- TransmittableThreadLocal(boolean) - Constructor for class com.alibaba.ttl.TransmittableThreadLocal
-
Constructor, create a
TransmittableThreadLocal
instance with parameterdisableIgnoreNullValueSemantics
to control "Ignore-Null-Value Semantics". - TransmittableThreadLocal.Transmitter - Class in com.alibaba.ttl
-
Transmitter
transmit allTransmittableThreadLocal
and registeredThreadLocal
values of the current thread to other thread. - TransmittableThreadLocal.Transmitter.Transmittee<C,
B> - Interface in com.alibaba.ttl -
The transmittee is the extension point for other
ThreadLocal
s which are registered byregisterTransmittee
method. - TtlAgent - Class in com.alibaba.ttl.threadpool.agent
-
TTL Java Agent.
- TtlAttachments - Interface in com.alibaba.ttl.spi
-
The TTL attachments for TTL tasks, eg:
TtlRunnable
,TtlCallable
. - TtlAttachmentsDelegate - Class in com.alibaba.ttl.spi
-
TtlAttachments
delegate/implementation. - TtlAttachmentsDelegate() - Constructor for class com.alibaba.ttl.spi.TtlAttachmentsDelegate
- TtlCallable<V> - Class in com.alibaba.ttl
-
TtlCallable
decorateCallable
to getTransmittableThreadLocal
value and transmit it to the time ofCallable
execution, needed when useCallable
to thread pool. - TtlCopier<T> - Interface in com.alibaba.ttl
-
TtlCopier
copies the value whenTransmitter#capture()
, use the copied value whenTransmitter#replay(Object)
. - TtlEnhanced - Interface in com.alibaba.ttl.spi
-
a Ttl marker/tag interface, for ttl enhanced class, for example
TTL wrapper
likeTtlRunnable
,TtlCallable
. - TtlExecutors - Class in com.alibaba.ttl.threadpool
-
Util methods for TTL wrapper of jdk executors.
- TtlForkJoinPoolHelper - Class in com.alibaba.ttl.threadpool
-
Util methods to wrap/check/unwrap methods for disable Inheritable wrapper of
ForkJoinPool.ForkJoinWorkerThreadFactory
. - TtlRecursiveAction - Class in com.alibaba.ttl
-
A recursive resultless
ForkJoinTask
enhanced byTransmittableThreadLocal
. - TtlRecursiveAction() - Constructor for class com.alibaba.ttl.TtlRecursiveAction
- TtlRecursiveTask<V> - Class in com.alibaba.ttl
-
A recursive result-bearing
ForkJoinTask
enhanced byTransmittableThreadLocal
. - TtlRecursiveTask() - Constructor for class com.alibaba.ttl.TtlRecursiveTask
- TtlRunnable - Class in com.alibaba.ttl
-
TtlRunnable
decorateRunnable
to getTransmittableThreadLocal
value and transmit it to the time ofRunnable
execution, needed when useRunnable
to thread pool. - TtlTimerTask - Class in com.alibaba.ttl
-
Deprecated.
- TtlTransformer - Class in com.alibaba.ttl.threadpool.agent
-
TTL
ClassFileTransformer
of Java Agent - TtlUnwrap - Class in com.alibaba.ttl
-
Util methods for TTL Wrapper: unwrap TTL Wrapper and check TTL Wrapper.
- TtlWrapper<T> - Interface in com.alibaba.ttl.spi
-
Ttl Wrapper interface.
- TtlWrappers - Class in com.alibaba.ttl
-
Util methods for TTL Wrapper: wrap common
Functional Interface
.
U
- unregisterThreadLocal(ThreadLocal<T>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Unregister the
ThreadLocal
instances to remove the Transmittable ability for theThreadLocal
instances. - unregisterTransmittee(TransmittableThreadLocal.Transmitter.Transmittee<C, B>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal.Transmitter
-
Unregister the transmittee(
CRR
), the extension point for otherThreadLocal
. - unwrap() - Method in interface com.alibaba.ttl.spi.TtlWrapper
-
unwrap
TtlWrapper
to the original/underneath one. - unwrap() - Method in interface com.alibaba.ttl.threadpool.DisableInheritableForkJoinWorkerThreadFactory
-
Unwrap
DisableInheritableThreadFactory
to the original/underneath one. - unwrap() - Method in interface com.alibaba.ttl.threadpool.DisableInheritableThreadFactory
-
Unwrap
DisableInheritableThreadFactory
to the original/underneath one. - unwrap() - Method in class com.alibaba.ttl.TtlCallable
-
unwrap to the original/underneath
Callable
. - unwrap() - Method in class com.alibaba.ttl.TtlRunnable
-
unwrap to original/unwrapped
Runnable
. - unwrap() - Method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.unwrap to original/unwrapped
TimerTask
. - unwrap(Runnable) - Static method in class com.alibaba.ttl.TtlRunnable
-
Unwrap
TtlRunnable
to the original/underneath one. - unwrap(Comparator<Runnable>) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
Unwrap
TtlRunnableUnwrapComparator
to the original/underneathComparator<Runnable>
. - unwrap(Callable<T>) - Static method in class com.alibaba.ttl.TtlCallable
-
Unwrap
TtlCallable
to the original/underneath one. - unwrap(ForkJoinPool.ForkJoinWorkerThreadFactory) - Static method in class com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper
-
Unwrap
DisableInheritableForkJoinWorkerThreadFactory
to the original/underneath one. - unwrap(ThreadFactory) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
Unwrap
DisableInheritableThreadFactory
to the original/underneath one. - unwrap(TimerTask) - Static method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.Unwrap
TtlTimerTask
to the original/underneath one. - unwrap(T) - Static method in class com.alibaba.ttl.threadpool.TtlExecutors
-
Unwrap TTL executor wrapper to the original/underneath one.
- unwrap(T) - Static method in class com.alibaba.ttl.TtlUnwrap
-
Generic unwrap method, unwrap
TtlWrapper
to the original/underneath one. - unwraps(Collection<? extends Runnable>) - Static method in class com.alibaba.ttl.TtlRunnable
-
Unwrap
TtlRunnable
to the original/underneath one for collection. - unwraps(Collection<? extends Callable<T>>) - Static method in class com.alibaba.ttl.TtlCallable
-
Unwrap
TtlCallable
to the original/underneath one. - unwraps(Collection<? extends TimerTask>) - Static method in class com.alibaba.ttl.TtlTimerTask
-
Deprecated.Unwrap
TtlTimerTask
to the original/underneath one.
W
- withInitial(Supplier<? extends S>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal
-
Creates a transmittable thread local variable.
- withInitialAndCopier(Supplier<? extends S>, TtlCopier<S>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal
-
Creates a transmittable thread local variable.
- withInitialAndCopier(Supplier<? extends S>, TtlCopier<S>, TtlCopier<S>) - Static method in class com.alibaba.ttl.TransmittableThreadLocal
-
Creates a transmittable thread local variable.
- wrap(BiConsumer<T, U>) - Static method in class com.alibaba.ttl.TtlWrappers
-
Deprecated.overload methods using the same name
wrap
is not readable and have the type inference problems in some case; so useTtlWrappers.wrapBiConsumer(BiConsumer)
instead. - wrap(BiFunction<T, U, R>) - Static method in class com.alibaba.ttl.TtlWrappers
-
Deprecated.overload methods using the same name
wrap
is not readable and have the type inference problems in some case; so useTtlWrappers.wrapBiFunction(BiFunction)
instead. - wrap(Consumer<T>) - Static method in class com.alibaba.ttl.TtlWrappers
-
Deprecated.overload methods using the same name
wrap
is not readable and have the type inference problems in some case; so useTtlWrappers.wrapConsumer(java.util.function.Consumer)
instead. - wrap(Function<T, R>) - Static method in class com.alibaba.ttl.TtlWrappers
-
Deprecated.overload methods using the same name
wrap
is not readable and have the type inference problems in some case; so useTtlWrappers.wrapFunction(Function)
instead. - wrap(Supplier<T>) - Static method in class com.alibaba.ttl.TtlWrappers
-
Deprecated.overload methods using the same name
wrap
is not readable and have the type inference problems in some case; so useTtlWrappers.wrapSupplier(Supplier)
instead. - wrapBiConsumer(BiConsumer<T, U>) - Static method in class com.alibaba.ttl.TtlWrappers
-
wrap
BiConsumer
to TTL wrapper. - wrapBiFunction(BiFunction<T, U, R>) - Static method in class com.alibaba.ttl.TtlWrappers
-
wrap
BiFunction
to TTL wrapper. - wrapConsumer(Consumer<T>) - Static method in class com.alibaba.ttl.TtlWrappers
-
wrap
Consumer
to TTL wrapper. - wrapFunction(Function<T, R>) - Static method in class com.alibaba.ttl.TtlWrappers
-
wrap
Function
to TTL wrapper. - wrapSupplier(Supplier<T>) - Static method in class com.alibaba.ttl.TtlWrappers
-
wrap
Supplier
to TTL wrapper.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
TtlRunnable
,ScheduledExecutorService
instead ofTimer
,TimerTask
.