org.jbpm.jobexecutor
Class StandardJobSession
java.lang.Object
org.jbpm.jobexecutor.StandardJobSession
- All Implemented Interfaces:
- JobSession
public class StandardJobSession
- extends java.lang.Object
- implements JobSession
- Author:
- Tom Baeyens
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardJobSession
public StandardJobSession()
getFirstAcquirableJob
public Job<?> getFirstAcquirableJob()
- Specified by:
getFirstAcquirableJob
in interface JobSession
- Returns:
- the first job to finish among eligible and non-locked jobs or null if none
findExclusiveJobs
public java.util.List<Job<?>> findExclusiveJobs(Execution processInstance)
- Specified by:
findExclusiveJobs
in interface JobSession
- Returns:
- the list of jobs of the process instance that mustn't be concurrent
getFirstDueJob
public Job<?> getFirstDueJob()
- Specified by:
getFirstDueJob
in interface JobSession
- Returns:
- the first job to finish among non-owned jobs or null if none
delete
public void delete(Job<?> job)
- Description copied from interface:
JobSession
- delete a job
- Specified by:
delete
in interface JobSession
save
public void save(Job<?> job)
- Description copied from interface:
JobSession
- save a job
- Specified by:
save
in interface JobSession
get
public Job<?> get(long jobId)
- Specified by:
get
in interface JobSession
- Returns:
- the job with the given id or null if none
findAllTimers
public java.util.List<Timer> findAllTimers()
- Specified by:
findAllTimers
in interface JobSession
- Returns:
- all the timers
findNextTimer
public Timer findNextTimer()
- Specified by:
findNextTimer
in interface JobSession
- Returns:
- the next timer that will fire or null if none
findTimers
public java.util.List<Timer> findTimers(Execution execution)
- Specified by:
findTimers
in interface JobSession
- Returns:
- all the timers scheduled on a given execution