spring-framework / org.springframework.scheduling.config / CronTask / <init>

<init>

CronTask(runnable: Runnable, expression: String)

Create a new CronTask.

Parameters

runnable - the underlying task to execute

expression - the cron expression defining when the task should be executed

CronTask(runnable: Runnable, cronTrigger: CronTrigger)

Create a new CronTask.

Parameters

runnable - the underlying task to execute

cronTrigger - the cron trigger defining when the task should be executed