public interface ScheduledTasks
ScheduledTaskBuilder
with the given Task
.
@Inject private ScheduledTasks scheduledTasks; ... scheduledTasks.scheduledTask(MyTask.class).cron("* * 0/1 * * ?").schedule();
This class should be injected.
ScheduledTaskBuilder
Modifier and Type | Method and Description |
---|---|
ScheduledTaskBuilder |
scheduledTask(Class<? extends Task> taskClass)
Create a ScheduledTaskBuilder.
|
ScheduledTaskBuilder scheduledTask(Class<? extends Task> taskClass)
taskClass
- Task class to scheduleCopyright © 2013-2018–2019 SeedStack. All rights reserved.