Class InThreadExecutionPlanner
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.multiprocessing.ExecutionPlanner
-
- org.hortonmachine.gears.libs.modules.multiprocessing.InThreadExecutionPlanner
-
public class InThreadExecutionPlanner extends ExecutionPlanner
- Author:
- Falko Bräutigam
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.libs.modules.multiprocessing.ExecutionPlanner
defaultExecutor, defaultPlannerFactory, numberOfTasks
-
-
Constructor Summary
Constructors Constructor Description InThreadExecutionPlanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidjoin()Blocks the calling thread until all sumitted task have completed execution.voidsubmit(MultiProcessingTask task)Submits the given task for execution.-
Methods inherited from class org.hortonmachine.gears.libs.modules.multiprocessing.ExecutionPlanner
createDefaultPlanner, setNumberOfTasks
-
-
-
-
Method Detail
-
submit
public void submit(MultiProcessingTask task)
Description copied from class:ExecutionPlannerSubmits the given task for execution.- Specified by:
submitin classExecutionPlanner
-
join
public void join() throws ExceptionDescription copied from class:ExecutionPlannerBlocks the calling thread until all sumitted task have completed execution.- Specified by:
joinin classExecutionPlanner- Throws:
Exception- If a previously submitted task has thrown an exception then it is re-thrown by the join() method.
-
-