Package org.drools.persistence.jpa
Class JpaJDKTimerService
- java.lang.Object
-
- org.drools.core.time.impl.JDKTimerService
-
- org.drools.persistence.jpa.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JpaJDKTimerService.JDKCallableJobCommand
class
JpaJDKTimerService.JpaJDKCallableJob
-
Constructor Summary
Constructors Constructor Description JpaJDKTimerService()
JpaJDKTimerService(int size)
-
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)
-
-
-
Method Detail
-
setCommandService
public void setCommandService(org.kie.api.runtime.ExecutableRunner runner)
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.drools.core.time.TimerService
- Overrides:
reset
in classorg.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()
-
-