org.jbpm.process.core.timer.impl
Class GlobalTimerService
java.lang.Object
org.jbpm.process.core.timer.impl.GlobalTimerService
- All Implemented Interfaces:
- org.drools.core.time.AcceptsTimerJobFactoryManager, org.drools.core.time.InternalSchedulerService, org.drools.core.time.SchedulerService, org.drools.core.time.TimerService
public class GlobalTimerService
- extends Object
- implements org.drools.core.time.TimerService, org.drools.core.time.InternalSchedulerService, org.drools.core.time.AcceptsTimerJobFactoryManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jobFactoryManager
protected org.drools.core.time.impl.TimerJobFactoryManager jobFactoryManager
schedulerService
protected GlobalSchedulerService schedulerService
manager
protected RuntimeManager manager
timerJobsPerSession
protected ConcurrentHashMap<Long,List<GlobalTimerService.GlobalJobHandle>> timerJobsPerSession
GlobalTimerService
public GlobalTimerService(RuntimeManager manager,
GlobalSchedulerService schedulerService)
scheduleJob
public org.drools.core.time.JobHandle scheduleJob(org.drools.core.time.Job job,
org.drools.core.time.JobContext ctx,
org.drools.core.time.Trigger trigger)
- Specified by:
scheduleJob
in interface org.drools.core.time.SchedulerService
removeJob
public boolean removeJob(org.drools.core.time.JobHandle jobHandle)
- Specified by:
removeJob
in interface org.drools.core.time.SchedulerService
getCurrentTime
public long getCurrentTime()
- Specified by:
getCurrentTime
in interface org.drools.core.time.TimerService
shutdown
public void shutdown()
- Specified by:
shutdown
in interface org.drools.core.time.TimerService
destroy
public void destroy()
getTimeToNextJob
public long getTimeToNextJob()
- Specified by:
getTimeToNextJob
in interface org.drools.core.time.TimerService
getTimerJobInstances
public Collection<org.drools.core.time.impl.TimerJobInstance> getTimerJobInstances(long id)
- Specified by:
getTimerJobInstances
in interface org.drools.core.time.TimerService
internalSchedule
public void internalSchedule(org.drools.core.time.impl.TimerJobInstance timerJobInstance)
- Specified by:
internalSchedule
in interface org.drools.core.time.InternalSchedulerService
setTimerJobFactoryManager
public void setTimerJobFactoryManager(org.drools.core.time.impl.TimerJobFactoryManager timerJobFactoryManager)
- Specified by:
setTimerJobFactoryManager
in interface org.drools.core.time.AcceptsTimerJobFactoryManager
getTimerJobFactoryManager
public org.drools.core.time.impl.TimerJobFactoryManager getTimerJobFactoryManager()
- Specified by:
getTimerJobFactoryManager
in interface org.drools.core.time.AcceptsTimerJobFactoryManager
getCommandService
public org.drools.core.command.CommandService getCommandService(org.drools.core.time.JobContext jobContext)
getTimerServiceId
public String getTimerServiceId()
setTimerServiceId
public void setTimerServiceId(String timerServiceId)
buildJobHandleForContext
public org.drools.core.time.JobHandle buildJobHandleForContext(NamedJobContext ctx)
getRuntimeManager
public org.kie.internal.runtime.manager.InternalRuntimeManager getRuntimeManager()
getCommandService
protected org.drools.core.command.CommandService getCommandService(Long processInstanceId,
TimerManager.ProcessJobContext ctx)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.