spring-framework / org.springframework.scheduling.concurrent / ScheduledExecutorTask / <init>

<init>

ScheduledExecutorTask()

Create a new ScheduledExecutorTask, to be populated via bean properties.

See Also
#setDelay#setPeriod#setFixedRate

ScheduledExecutorTask(executorTask: Runnable)

Create a new ScheduledExecutorTask, with default one-time execution without delay.

Parameters

executorTask - the Runnable to schedule

ScheduledExecutorTask(executorTask: Runnable, delay: Long)

Create a new ScheduledExecutorTask, with default one-time execution with the given delay.

Parameters

executorTask - the Runnable to schedule

delay - the delay before starting the task for the first time (ms)

ScheduledExecutorTask(executorTask: Runnable, delay: Long, period: Long, fixedRate: Boolean)

Create a new ScheduledExecutorTask.

Parameters

executorTask - the Runnable to schedule

delay - the delay before starting the task for the first time (ms)

period - the period between repeated task executions (ms)

fixedRate - whether to schedule as fixed-rate execution