org.springframework.scheduling.timer |
Scheduling convenience classes for the JDK Timer,
allowing to set up Timers and ScheduledTimerTasks
as beans in a Spring context.
|
Java Source File Name | Type | Comment |
DelegatingTimerTask.java | Class | Simple
java.util.TimerTask adapter that delegates to a
given
java.lang.Runnable . |
MethodInvokingTimerTaskFactoryBean.java | Class | FactoryBean that exposes a TimerTask object that delegates
job execution to a specified (static or non-static) method.
Avoids the need to implement a one-line TimerTask that just
invokes an existing business method.
Derives from MethodInvokingRunnable to share common properties
and behavior, effectively providing a TimerTask adapter for it.
Often used to populate a ScheduledTimerTask object with a specific
reflective method invocation. |
ScheduledTimerTask.java | Class | JavaBean that describes a scheduled
TimerTask , consisting of the
TimerTask itself or a
Runnable to create a
TimerTask for and a delay plus period. |
TimerFactoryBean.java | Class | FactoryBean that sets up a
java.util.Timer and exposes it for bean references.
Allows for registration of
ScheduledTimerTask ScheduledTimerTasks ,
automatically starting the
Timer on initialization and cancelling it
on destruction of the context. |
TimerTaskExecutor.java | Class | org.springframework.core.task.TaskExecutor implementation that uses a
single
Timer for executing all tasks, effectively resulting in
serialized asynchronous execution on a single thread. |