org.testng.thread.IThreadWorkerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
package org.testng.thread;
import java.util.List;
/** A factory that creates workers used by {@code GraphThreadPoolExecutor} */
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);
}