Class CronTask
java.lang.Object
org.springframework.scheduling.config.Task
org.springframework.scheduling.config.TriggerTask
org.springframework.scheduling.config.CronTask
TriggerTask implementation defining a Runnable to be executed according
 to a standard cron expression.- Since:
- 3.2
- Author:
- Chris Beams
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the cron expression defining when the task should be executed.Methods inherited from class org.springframework.scheduling.config.TriggerTaskgetTriggerMethods inherited from class org.springframework.scheduling.config.TaskgetRunnable, toString
- 
Constructor Details- 
CronTaskCreate a newCronTask.- Parameters:
- runnable- the underlying task to execute
- expression- the cron expression defining when the task should be executed
 
- 
CronTaskCreate a newCronTask.- Parameters:
- runnable- the underlying task to execute
- cronTrigger- the cron trigger defining when the task should be executed
 
 
- 
- 
Method Details- 
getExpressionReturn the cron expression defining when the task should be executed.
 
-