Interface SchedulerService
-
- All Known Implementing Classes:
DefaultSchedulerService
public interface SchedulerServiceUses 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 aScheduledJoband add scheduling and trigger information to the running quartz instance, if it's not already there.voidschedule(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Initiates the quartz scheduler to create, update, and delete quartz jobs according to theScheduled Jobsdefined in the database.voidunschedule(@NonNull ScheduledJob job, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
-
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 theScheduled Jobsdefined in the database.- Parameters:
contextInfo- context information surrounding multitenant state
-
unschedule
void unschedule(@NonNull @NonNull ScheduledJob job, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) throws org.quartz.SchedulerException- Parameters:
job- The scheduled job entitycontextInfo- context information surrounding multitenant state- Throws:
org.quartz.SchedulerException- Thrown if a problem occurs in Quartz during scheduling
-
processJob
Optional<org.quartz.JobDetail> processJob(ScheduledJob job) throws org.quartz.SchedulerException
Review aScheduledJoband add scheduling and trigger information to the running quartz instance, if it's not already there.- Parameters:
job- The scheduled job entity- Returns:
- The
JobDetailresulting from Quartz scheduling, if the item was scheduled - Throws:
org.quartz.SchedulerException- Thrown if a problem occurs in Quartz during scheduling
-
-