Top Description Methods
org.junit.platform.engine.support.hierarchical

public Interface ParallelExecutionConfiguration

Known Direct Implementers
org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfiguration
Annotations
@API
status:STABLE
since:1.10
Static Imports
org.apiguardian.api.API.Status.STABLE

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.

Since
1.3
See Also
ForkJoinPoolHierarchicalTestExecutorService, ParallelExecutionConfigurationStrategy, DefaultParallelExecutionConfigurationStrategy

Method Summary

Modifier and TypeMethod and Description
public int
getCorePoolSize()

Get the core thread pool size to be used.

public int
getKeepAliveSeconds()

Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.

public int
getMaxPoolSize()

Get the maximum thread pool size to be used.

public int
getMinimumRunnable()

Get the minimum number of runnable threads to be used.

public int
getParallelism()

Get the parallelism to be used.

public default @Nullable Predicate<? super ForkJoinPool>

Returns:

the saturate predicate to be passed to the ForkJoinPool constructor; may be null
getSaturatePredicate
()

Get the saturate predicate to be used for the execution's ForkJoinPool.

Method Detail

getCorePoolSizeback to summary
public int getCorePoolSize()

Get the core thread pool size to be used.

getKeepAliveSecondsback to summary
public int getKeepAliveSeconds()

Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.

getMaxPoolSizeback to summary
public int getMaxPoolSize()

Get the maximum thread pool size to be used.

getMinimumRunnableback to summary
public int getMinimumRunnable()

Get the minimum number of runnable threads to be used.

getParallelismback to summary
public int getParallelism()

Get the parallelism to be used.

See Also
ForkJoinPool#getParallelism()
getSaturatePredicateback to summary
public default @Nullable Predicate<? super ForkJoinPool> getSaturatePredicate()

Get the saturate predicate to be used for the execution's ForkJoinPool.

Returns:@Nullable Predicate<? super ForkJoinPool>

the saturate predicate to be passed to the ForkJoinPool constructor; may be null

Annotations
@API
status:STABLE
since:1.11
Since
1.9
See Also
ForkJoinPool#ForkJoinPool(int, ForkJoinPool.ForkJoinWorkerThreadFactory, Thread.UncaughtExceptionHandler, boolean, int, int, int, Predicate, long, java.util.concurrent.TimeUnit)