Top Fields Constructors Methods
org.junit.platform.engine.support.hierarchical

pack-priv Class DefaultParallelExecutionConfiguration

extends Object
implements ParallelExecutionConfiguration
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
Imports
java.util.concurrent.ForkJoinPool, java.util.function.Predicate

Since
1.3

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final int
private final int
private final Predicate<? super ForkJoinPool>

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultParallelExecutionConfiguration(int parallelism, int minimumRunnable, int maxPoolSize, int corePoolSize, int keepAliveSeconds, Predicate<? super ForkJoinPool> saturate)

Method Summary

Modifier and TypeMethod and Description
public int
public int
getKeepAliveSeconds()

Implements org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getKeepAliveSeconds.

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

public int
public int
public int
public Predicate<? super ForkJoinPool>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

corePoolSizeback to summary
private final int corePoolSize
keepAliveSecondsback to summary
private final int keepAliveSeconds
maxPoolSizeback to summary
private final int maxPoolSize
minimumRunnableback to summary
private final int minimumRunnable
parallelismback to summary
private final int parallelism
saturateback to summary
private final Predicate<? super ForkJoinPool> saturate

Constructor Detail

DefaultParallelExecutionConfigurationback to summary
pack-priv DefaultParallelExecutionConfiguration(int parallelism, int minimumRunnable, int maxPoolSize, int corePoolSize, int keepAliveSeconds, Predicate<? super ForkJoinPool> saturate)

Method Detail

getCorePoolSizeback to summary
public int getCorePoolSize()

Implements org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getCorePoolSize.

Doc from org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getCorePoolSize.

Get the core thread pool size to be used.

Annotations
@Override
getKeepAliveSecondsback to summary
public int getKeepAliveSeconds()

Implements org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getKeepAliveSeconds.

Doc from org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getKeepAliveSeconds.

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

Annotations
@Override
getMaxPoolSizeback to summary
public int getMaxPoolSize()

Implements org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getMaxPoolSize.

Doc from org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getMaxPoolSize.

Get the maximum thread pool size to be used.

Annotations
@Override
getMinimumRunnableback to summary
public int getMinimumRunnable()

Implements org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getMinimumRunnable.

Doc from org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getMinimumRunnable.

Get the minimum number of runnable threads to be used.

Annotations
@Override
getParallelismback to summary
public int getParallelism()

Implements org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getParallelism.

Doc from org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getParallelism.

Get the parallelism to be used.

Annotations
@Override
getSaturatePredicateback to summary
public Predicate<? super ForkJoinPool> getSaturatePredicate()

Overrides default org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getSaturatePredicate.

Doc from org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration.getSaturatePredicate.

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

Annotations
@Override