Class DefaultParallelExecutionConfiguration
- java.lang.Object
-
- org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfiguration
-
- All Implemented Interfaces:
ParallelExecutionConfiguration
class DefaultParallelExecutionConfiguration extends java.lang.Object implements ParallelExecutionConfiguration
- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private int
corePoolSize
private int
keepAliveSeconds
private int
maxPoolSize
private int
minimumRunnable
private int
parallelism
-
Constructor Summary
Constructors Constructor Description DefaultParallelExecutionConfiguration(int parallelism, int minimumRunnable, int maxPoolSize, int corePoolSize, int keepAliveSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCorePoolSize()
Get the core thread pool size to be used.int
getKeepAliveSeconds()
Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.int
getMaxPoolSize()
Get the maximum thread pool size to be used.int
getMinimumRunnable()
Get the minimum number of runnable threads to be used.int
getParallelism()
Get the parallelism to be used.
-
-
-
Method Detail
-
getParallelism
public int getParallelism()
Description copied from interface:ParallelExecutionConfiguration
Get the parallelism to be used.- Specified by:
getParallelism
in interfaceParallelExecutionConfiguration
- See Also:
ForkJoinPool.getParallelism()
-
getMinimumRunnable
public int getMinimumRunnable()
Description copied from interface:ParallelExecutionConfiguration
Get the minimum number of runnable threads to be used.- Specified by:
getMinimumRunnable
in interfaceParallelExecutionConfiguration
-
getMaxPoolSize
public int getMaxPoolSize()
Description copied from interface:ParallelExecutionConfiguration
Get the maximum thread pool size to be used.- Specified by:
getMaxPoolSize
in interfaceParallelExecutionConfiguration
-
getCorePoolSize
public int getCorePoolSize()
Description copied from interface:ParallelExecutionConfiguration
Get the core thread pool size to be used.- Specified by:
getCorePoolSize
in interfaceParallelExecutionConfiguration
-
getKeepAliveSeconds
public int getKeepAliveSeconds()
Description copied from interface:ParallelExecutionConfiguration
Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.- Specified by:
getKeepAliveSeconds
in interfaceParallelExecutionConfiguration
-
-