Class ParallelJob

All Implemented Interfaces:
ICompositeJob, IJob, Iterable<IJob>, Collection<IJob>, List<IJob>
Direct Known Subclasses:
ParallelBlackboardInteractingJob

public class ParallelJob extends AbstractCompositeJob
Runs a set of jobs in parallel. The jobs are executed asynchronously and joined on a barrier before continuing the main workflow
  • Constructor Details

    • ParallelJob

      public ParallelJob()
      Initialise a parallel job containing a number of child jobs with a thread pool size equal to the number of CPU cores.
    • ParallelJob

      public ParallelJob(int threadPoolSize)
      Initialise a parallel job with the given thread pool size to be used for job execution.
      Parameters:
      threadPoolSize - The amount of threads to be used to execute jobs
  • Method Details