Class CronSchedulerUtil


  • public final class CronSchedulerUtil
    extends Object
    Coordinates access to the JVM-wide default Quartz scheduler shared by cron triggers and cron windows.
    • Field Detail

      • LOCK

        public static final Object LOCK
        Guards scheduling and removal of jobs so that the scheduler is not shut down while a job is being added.
    • Method Detail

      • deleteJob

        public static void deleteJob​(org.quartz.Scheduler scheduler,
                                     org.quartz.JobKey jobKey)
                              throws org.quartz.SchedulerException
        Deletes the job and shuts the scheduler down once it has no jobs left. Must be called holding LOCK.
        Throws:
        org.quartz.SchedulerException