Class QueueCronTriggerComponent
java.lang.Object
org.sterl.spring.persistent_tasks.trigger.component.QueueCronTriggerComponent
Create new trigger for
CronTriggerEntitys if required.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexecute()Ensures all non-suspended cron triggers have corresponding database triggers.<T extends Serializable>
booleanexecute(CronTriggerEntity<T> cronTrigger) Creates a new trigger instance for the givenCronTriggerEntityif none exist.
-
Constructor Details
-
QueueCronTriggerComponent
public QueueCronTriggerComponent()
-
-
Method Details
-
execute
public int execute()Ensures all non-suspended cron triggers have corresponding database triggers. Creates missing triggers with next scheduled execution time.- Returns:
- count of created triggers
-
execute
Creates a new trigger instance for the givenCronTriggerEntityif none exist.- Parameters:
cronTrigger- the cron trigger definition- Returns:
trueif created,falseif already exists
-