use of org.drools.core.time.SelfRemovalJob in project drools by kiegroup.
the class JpaJDKTimerService method createCallableJob.
protected Callable<Void> createCallableJob(Job job, JobContext ctx, Trigger trigger, JDKJobHandle handle, InternalSchedulerService scheduler) {
JpaJDKCallableJob jobInstance = new JpaJDKCallableJob(new SelfRemovalJob(job), new SelfRemovalJobContext(ctx, timerInstances), trigger, handle, scheduler);
this.timerInstances.put(handle.getId(), jobInstance);
return jobInstance;
}
Aggregations