Package io.siddhi.core.util
Class CronSchedulerUtil
- java.lang.Object
-
- io.siddhi.core.util.CronSchedulerUtil
-
public final class CronSchedulerUtil extends Object
Coordinates access to the JVM-wide default Quartz scheduler shared by cron triggers and cron windows.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteJob(org.quartz.Scheduler scheduler, org.quartz.JobKey jobKey)Deletes the job and shuts the scheduler down once it has no jobs left.
-
-
-
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.SchedulerExceptionDeletes the job and shuts the scheduler down once it has no jobs left. Must be called holdingLOCK.- Throws:
org.quartz.SchedulerException
-
-