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.
    • Field Summary

      • Fields inherited from class org.drools.core.time.impl.JDKTimerService

        jobFactoryManager, scheduler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.concurrent.Callable<java.lang.Void> createCallableJob​(org.drools.core.time.Job job, org.drools.core.time.JobContext ctx, org.drools.base.time.Trigger trigger, org.drools.core.time.impl.JDKTimerService.JDKJobHandle handle, org.drools.core.time.InternalSchedulerService scheduler)  
      java.util.Collection<org.drools.core.time.impl.TimerJobInstance> getTimerJobInstances()  
      void reset()  
      void setCommandService​(org.kie.api.runtime.ExecutableRunner runner)  
      • Methods inherited from class org.drools.core.time.impl.JDKTimerService

        getCurrentTime, getTimerJobFactoryManager, getTimerJobInstances, getTimeToNextJob, internalSchedule, removeJob, scheduleJob, setTimerJobFactoryManager, shutdown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.util.concurrent.Callable<java.lang.Void> createCallableJob​(org.drools.core.time.Job job,
                                                                                  org.drools.core.time.JobContext ctx,
                                                                                  org.drools.base.time.Trigger trigger,
                                                                                  org.drools.core.time.impl.JDKTimerService.JDKJobHandle handle,
                                                                                  org.drools.core.time.InternalSchedulerService scheduler)
      • getTimerJobInstances

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