Package io.bdeploy.common.util
Class TaskExecutor
java.lang.Object
io.bdeploy.common.util.TaskExecutor
Simplifies execution and progress reporting for operations that should run in parallel.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskExecutor(ActivityReporter reporter) Creates a new executor using the given reporter -
Method Summary
-
Constructor Details
-
TaskExecutor
Creates a new executor using the given reporter
-
-
Method Details
-
add
Adds the given task to the list of task. -
run
Executes all tasks and waits for completion.- Parameters:
taskName- the activity that should be reported
-