Module org.junit.platform.engine
Interface ParallelExecutionConfiguration
Configuration to use for parallel test execution.
Instances of this class are intended to be used to configure
implementations of HierarchicalTestExecutorService. Such
implementations may use all of the properties in this class or
only a subset.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the core thread pool size to be used.intGet the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.intGet the maximum thread pool size to be used.intGet the minimum number of runnable threads to be used.intGet the parallelism to be used.default Predicate<? super ForkJoinPool>Get the saturate predicate to be used for the execution'sForkJoinPool.
-
Method Details
-
getParallelism
int getParallelism()Get the parallelism to be used.- See Also:
-
getMinimumRunnable
int getMinimumRunnable()Get the minimum number of runnable threads to be used. -
getMaxPoolSize
int getMaxPoolSize()Get the maximum thread pool size to be used. -
getCorePoolSize
int getCorePoolSize()Get the core thread pool size to be used. -
getKeepAliveSeconds
int getKeepAliveSeconds()Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool. -
getSaturatePredicate
@API(status=EXPERIMENTAL, since="1.9") default Predicate<? super ForkJoinPool> getSaturatePredicate()Get the saturate predicate to be used for the execution'sForkJoinPool.- Returns:
- the saturate predicate to be passed to the
ForkJoinPoolconstructor; may benull - Since:
- 1.9
- See Also:
-