Search in sources :

Example 1 with SelfRemovalJob

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;
}
Also used : SelfRemovalJob(org.drools.core.time.SelfRemovalJob) SelfRemovalJobContext(org.drools.core.time.SelfRemovalJobContext)

Aggregations

SelfRemovalJob (org.drools.core.time.SelfRemovalJob)1 SelfRemovalJobContext (org.drools.core.time.SelfRemovalJobContext)1