@API(status=STABLE,
since="1.10")
public interface ParallelExecutionConfiguration
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.
| Modifier and Type | Method and 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.
|
default java.util.function.Predicate<? super java.util.concurrent.ForkJoinPool> |
getSaturatePredicate()
Get the saturate predicate to be used for the execution's
ForkJoinPool. |
int getParallelism()
ForkJoinPool.getParallelism()int getMinimumRunnable()
int getMaxPoolSize()
int getCorePoolSize()
int getKeepAliveSeconds()
@API(status=EXPERIMENTAL,
since="1.9")
default java.util.function.Predicate<? super java.util.concurrent.ForkJoinPool> getSaturatePredicate()
ForkJoinPool.ForkJoinPool constructor; may be nullForkJoinPool#ForkJoinPool(int, ForkJoinPool.ForkJoinWorkerThreadFactory, Thread.UncaughtExceptionHandler,
boolean, int, int, int, Predicate, long, TimeUnit)