Interface SchedulerService

  • All Known Implementing Classes:
    DefaultSchedulerService

    public interface SchedulerService
    Uses quartz scheduling to schedule quartz jobs.
    Author:
    Chad Harchar (charchar), Jeff Fischer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<org.quartz.JobDetail> processJob​(ScheduledJob job)
      Review a ScheduledJob and add scheduling and trigger information to the running quartz instance, if it's not already there.
      void schedule​(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Initiates the quartz scheduler to create, update, and delete quartz jobs according to the Scheduled Jobs defined in the database.
    • Method Detail

      • schedule

        void schedule​(@Nullable
                      com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Initiates the quartz scheduler to create, update, and delete quartz jobs according to the Scheduled Jobs defined in the database.
        Parameters:
        contextInfo - context information surrounding multitenant state
      • processJob

        Optional<org.quartz.JobDetail> processJob​(ScheduledJob job)
                                           throws org.quartz.SchedulerException
        Review a ScheduledJob and add scheduling and trigger information to the running quartz instance, if it's not already there.
        Parameters:
        job - The scheduled job entity
        Returns:
        The JobDetail resulting from Quartz scheduling, if the item was scheduled
        Throws:
        org.quartz.SchedulerException - Thrown if a problem occurs in Quartz during scheduling