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 TaskExecutorImpl
create()
Creates a new instance of TaskExecutorImpl.void
run
(List<JWeaverTask> taskList) Executes the specified list of tasks sequentially.void
runParallel
(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:TaskExecutor
Executes the specified list of tasks in parallel.- Specified by:
runParallel
in interfaceTaskExecutor
- Parameters:
tasks
- The list of tasks to execute.
-
run
Description copied from interface:TaskExecutor
Executes the specified list of tasks sequentially.- Specified by:
run
in interfaceTaskExecutor
- Parameters:
taskList
- The list of tasks to execute.
-