Schedule

public class Schedule

Keeps track of Jobs.

The Schedule class orders jobs by TransactionStage and also assures that jobs are skipped when appropriate and to prevent that jobs run more than once (because sometimes they trigger each other).

Author:

Timm Fitschen

Methods

add

public ScheduledJob add(Job j)

addAll

public List<ScheduledJob> addAll(Collection<Job> jobs)

runJob

public void runJob(ScheduledJob scheduledJob)

runJob

public void runJob(EntityInterface entity, Class<? extends Job> jobclass)

Run all scheduled Jobs of a given class for the given entity.

runJobs

public void runJobs(TransactionStage stage)

Run all Jobs from the specified TransactionStage.