All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.internal.thread.graph.IThreadWorkerFactory Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.internal.thread.graph;

import java.util.List;
import java.util.Set;


/**
 * A factory that creates workers used by {@code GraphThreadPoolExecutor}
 * @author nullin
 *
 * @param 
 */
public interface IThreadWorkerFactory {

  /**
   * Creates {@code IWorker} for specified set of tasks. It is not necessary that
   * number of workers returned be same as number of tasks entered.
   *
   * @param freeNodes tasks that need to be executed
   * @return list of workers
   */
  List> createWorkers(List freeNodes);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy