Class TaskExecutorImpl

java.lang.Object
org.jweaver.crawler.internal.runner.TaskExecutorImpl
All Implemented Interfaces:
TaskExecutor

public class TaskExecutorImpl extends Object implements TaskExecutor
A concrete implementation of the TaskExecutor interface responsible for executing tasks.
  • Method Details

    • create

      public static TaskExecutorImpl create()
      Creates a new instance of TaskExecutorImpl.
      Returns:
      A new TaskExecutorImpl instance.
    • runParallel

      public void runParallel(List<JWeaverTask> tasks)
      Description copied from interface: TaskExecutor
      Executes the specified list of tasks in parallel.
      Specified by:
      runParallel in interface TaskExecutor
      Parameters:
      tasks - The list of tasks to execute.
    • run

      public void run(List<JWeaverTask> taskList)
      Description copied from interface: TaskExecutor
      Executes the specified list of tasks sequentially.
      Specified by:
      run in interface TaskExecutor
      Parameters:
      taskList - The list of tasks to execute.