TriggerTask implementation defining a Runnable to be executed according
to a standard cron expression.
org.springframework.scheduling.annotation.Scheduled#cron() , ScheduledTaskRegistrar#addCronTask(CronTask)
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CronTask(Runnable
the underlying task to execute runnable, CronTrigger the cron trigger defining when the task should be executed cronTrigger)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| expression | back to summary |
|---|---|
| private final String expression | |
| CronTask | back to summary |
|---|---|
| public CronTask(Runnable runnable, String expression) Create a new | |
| CronTask | back to summary |
|---|---|
| public CronTask(Runnable runnable, CronTrigger cronTrigger) Create a new
| |
| getExpression | back to summary |
|---|---|
| public String getExpression() Return the cron expression defining when the task should be executed. | |