| java.lang.Object org.springframework.scheduling.timer.TimerFactoryBean
Field Summary | |
final protected Log | logger |
logger | final protected Log logger(Code) | | |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
createTimer | protected Timer createTimer(String name, boolean daemon)(Code) | | Create a new Timer instance. Called by afterPropertiesSet .
Can be overridden in subclasses to provide custom Timer subclasses.
Uses the specified name as Timer thread name on JDK 1.5,
simply falling back to a default Timer thread on JDK 1.4.
Parameters: name - the desired name of the Timer's associated thread(applied on JDK 1.5 and higher; ignored on JDK 1.4) Parameters: daemon - whether to create a Timer that runs as daemon thread a new Timer instance See Also: TimerFactoryBean.afterPropertiesSet() See Also: java.util.Timer.Timer(boolean) |
destroy | public void destroy()(Code) | | Cancel the Timer on bean factory shutdown, stopping all scheduled tasks.
See Also: java.util.Timer.cancel |
isSingleton | public boolean isSingleton()(Code) | | |
registerTasks | protected void registerTasks(ScheduledTimerTask[] tasks, Timer timer)(Code) | | Register the specified
ScheduledTimerTask ScheduledTimerTasks on the given
Timer .
Parameters: tasks - the specified ScheduledTimerTasks (never empty) Parameters: timer - the Timer to register the tasks on. |
setDaemon | public void setDaemon(boolean daemon)(Code) | | Set whether the timer should use a daemon thread,
just executing as long as the application itself is running.
Default is "false": The timer will automatically get cancelled on
destruction of this FactoryBean. Hence, if the application shuts down,
tasks will by default finish their execution. Specify "true" for eager
shutdown of threads that execute tasks.
See Also: java.util.Timer.Timer(boolean) |
|
|