Class TaskExecutorImpl
java.lang.Object
org.jweaver.crawler.internal.runner.TaskExecutorImpl
- All Implemented Interfaces:
TaskExecutor
A concrete implementation of the
TaskExecutor interface responsible for executing tasks.-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskExecutorImplcreate()Creates a new instance of TaskExecutorImpl.voidrun(List<JWeaverTask> taskList) Executes the specified list of tasks sequentially.voidrunParallel(List<JWeaverTask> tasks) Executes the specified list of tasks in parallel.
-
Method Details
-
create
Creates a new instance of TaskExecutorImpl.- Returns:
- A new TaskExecutorImpl instance.
-
runParallel
Description copied from interface:TaskExecutorExecutes the specified list of tasks in parallel.- Specified by:
runParallelin interfaceTaskExecutor- Parameters:
tasks- The list of tasks to execute.
-
run
Description copied from interface:TaskExecutorExecutes the specified list of tasks sequentially.- Specified by:
runin interfaceTaskExecutor- Parameters:
taskList- The list of tasks to execute.
-