org.drools.persistence.jpa
Class JpaJDKTimerService

java.lang.Object
  extended by org.drools.time.impl.JDKTimerService
      extended by org.drools.persistence.jpa.JpaJDKTimerService
All Implemented Interfaces:
SchedulerService, org.drools.time.SessionClock, TimerService

public class JpaJDKTimerService
extends 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
static class JpaJDKTimerService.JDKCallableJobCommand
           
 class JpaJDKTimerService.JpaJDKCallableJob
           
 
Nested classes/interfaces inherited from class org.drools.time.impl.JDKTimerService
JDKTimerService.JDKCallableJob, JDKTimerService.JDKJobHandle
 
Field Summary
 
Fields inherited from class org.drools.time.impl.JDKTimerService
scheduler
 
Constructor Summary
JpaJDKTimerService()
           
JpaJDKTimerService(int size)
           
 
Method Summary
protected  Callable<Void> createCallableJob(Job job, JobContext ctx, Trigger trigger, JDKTimerService.JDKJobHandle handle, ScheduledThreadPoolExecutor scheduler)
           
 void setCommandService(CommandService commandService)
           
 
Methods inherited from class org.drools.time.impl.JDKTimerService
getCurrentTime, getTimeToNextJob, removeJob, scheduleJob, 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(CommandService commandService)

createCallableJob

protected Callable<Void> createCallableJob(Job job,
                                           JobContext ctx,
                                           Trigger trigger,
                                           JDKTimerService.JDKJobHandle handle,
                                           ScheduledThreadPoolExecutor scheduler)
Overrides:
createCallableJob in class JDKTimerService


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.