Class JpaJDKTimerService

  • All Implemented Interfaces:
    org.drools.core.time.InternalSchedulerService, org.drools.core.time.SchedulerService, org.drools.core.time.TimerService, org.kie.api.time.SessionClock

    public class JpaJDKTimerService
    extends org.drools.core.time.impl.JDKTimerService
    A default Scheduler implementation that uses the JDK built-in ScheduledThreadPoolExecutor as the scheduler and the system clock as the clock.
    • Constructor Detail

      • JpaJDKTimerService

        public JpaJDKTimerService()
      • JpaJDKTimerService

        public JpaJDKTimerService​(int size)
    • Method Detail

      • setCommandService

        public void setCommandService​(org.kie.api.runtime.ExecutableRunner runner)
      • reset

        public void reset()
        Specified by:
        reset in interface org.drools.core.time.TimerService
        Overrides:
        reset in class org.drools.core.time.impl.JDKTimerService
      • createCallableJob

        protected Callable<Void> createCallableJob​(org.drools.core.time.Job job,
                                                   org.drools.core.time.JobContext ctx,
                                                   org.drools.core.time.Trigger trigger,
                                                   org.drools.core.time.impl.JDKTimerService.JDKJobHandle handle,
                                                   org.drools.core.time.InternalSchedulerService scheduler)
      • getTimerJobInstances

        public Collection<org.drools.core.time.impl.TimerJobInstance> getTimerJobInstances()