Package | Description |
---|---|
org.seedstack.scheduler |
Contains classes for scheduling tasks.
|
Modifier and Type | Method and Description |
---|---|
ScheduledTaskBuilder |
ScheduledTasks.scheduledTask(Class<? extends Task> taskClass)
Create a ScheduledTaskBuilder.
|
ScheduledTaskBuilder |
ScheduledTaskBuilder.updateExistingTrigger()
Requests an existing trigger (sharing the same key as the new trigger) for this task to
be replaced with the new trigger.
|
ScheduledTaskBuilder |
ScheduledTaskBuilder.withCronExpression(String cronExpression)
Sets the cron expression to base the schedule on.
|
ScheduledTaskBuilder |
ScheduledTaskBuilder.withDataMap(Map<String,?> dataMap)
Sets the
Task 's data map |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withPriority(int priority)
Sets the Trigger's priority.
When more than one Trigger have the same fire time, the scheduler will fire the one with the highest priority first. |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withRequestRecovery(boolean requestRecovery)
Instructs the
Scheduler whether or not the Task should
be re-executed if a recovery or fail-over situation is
encountered. |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withStoreDurably(boolean storeDurably)
Whether or not the
Task should remain stored after it is
orphaned (no Trigger s point to it). |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withTaskName(String taskName)
Sets the
Task 's identity |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withTimeZone(TimeZone timeZone)
Sets the time zone for which the
cronExpression of this
CronTrigger will be resolved. |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withTrigger(Object trigger)
Sets the
Trigger that will be used to schedule
the Task . |
ScheduledTaskBuilder |
ScheduledTaskBuilder.withTriggerName(String triggerName)
Sets the
Trigger name, must be unique within the group. |
Copyright © 2013-2018–2019 SeedStack. All rights reserved.