Class QueueCronTriggerComponent

java.lang.Object
org.sterl.spring.persistent_tasks.trigger.component.QueueCronTriggerComponent

@Component public class QueueCronTriggerComponent extends Object
Create new trigger for CronTriggerEntitys if required.
  • 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

      public <T extends Serializable> boolean execute(CronTriggerEntity<T> cronTrigger)
      Creates a new trigger instance for the given CronTriggerEntity if none exist.
      Parameters:
      cronTrigger - the cron trigger definition
      Returns:
      true if created, false if already exists