Prev Next

Spring / Spring Integration

Spring 3.0: How do I schedule Tasks?

Spring 3.0 introduced TaskScheduler for scheduling jobs by enabling Api support for support for Timer (Jdk) and Quartz.

TaskScheduler defines the below API.

ScheduledFuture scheduleAtFixedRate(Runnable task, long period);
ScheduledFuture scheduleWithFixedDelay(Runnable task, long delay);

Scheduling can be done with xml configuration as well as using annotations.

More Related questions...

Show more question and Answers...


Comments & Discussions