public class DefaultThreadPoolExecutorFactory extends Object implements IExecutorFactory
| Constructor and Description |
|---|
DefaultThreadPoolExecutorFactory() |
| Modifier and Type | Method and Description |
|---|---|
ITestNGThreadPoolExecutor |
newSuiteExecutor(String name,
IDynamicGraph<ISuite> graph,
IThreadWorkerFactory<ISuite> factory,
int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
Comparator<ISuite> comparator) |
ITestNGThreadPoolExecutor |
newTestMethodExecutor(String name,
IDynamicGraph<ITestNGMethod> graph,
IThreadWorkerFactory<ITestNGMethod> factory,
int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
Comparator<ITestNGMethod> comparator) |
public ITestNGThreadPoolExecutor newSuiteExecutor(String name, IDynamicGraph<ISuite> graph, IThreadWorkerFactory<ISuite> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ISuite> comparator)
newSuiteExecutor in interface IExecutorFactoryname - - The name to be used as a prefix for all created threads.graph - - A IDynamicGraph object that represents the graph of methods
and the hierarchy of execution.factory - - A IThreadWorkerFactory factory to create threads.corePoolSize - the number of threads to keep in the pool, even if they are idle, unless
allowCoreThreadTimeOut is setmaximumPoolSize - the maximum number of threads to allow in the poolkeepAliveTime - when the number of threads is greater than the core, this is the maximum
time that excess idle threads will wait for new tasks before terminating.unit - the time unit for the keepAliveTime argumentworkQueue - the queue to use for holding tasks before they are executed. This queue will
hold only the Runnable tasks submitted by the execute method.comparator - - A Comparator to order nodes internally.ITestNGThreadPoolExecutor that is capable of running suites in
parallel.public ITestNGThreadPoolExecutor newTestMethodExecutor(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator)
newTestMethodExecutor in interface IExecutorFactoryname - - The name to be used as a prefix for all created threads.graph - - A IDynamicGraph object that represents the graph of methods and the
hierarchy of execution.factory - - A IThreadWorkerFactory factory to create threads.corePoolSize - the number of threads to keep in the pool, even if they are idle, unless
allowCoreThreadTimeOut is setmaximumPoolSize - the maximum number of threads to allow in the poolkeepAliveTime - when the number of threads is greater than the core, this is the maximum
time that excess idle threads will wait for new tasks before terminating.unit - the time unit for the keepAliveTime argumentworkQueue - the queue to use for holding tasks before they are executed. This queue will
hold only the Runnable tasks submitted by the execute method.comparator - - A Comparator to order nodes internally.ITestNGThreadPoolExecutor that is capable of running test methods in
parallel.Copyright © 2025. All rights reserved.