@API(status=EXPERIMENTAL,
since="1.3")
public class ForkJoinPoolHierarchicalTestExecutorService
extends Object
implements HierarchicalTestExecutorService
ForkJoinPool-based
executor service that executes
test tasks with the configured parallelism.ForkJoinPool,
DefaultParallelExecutionConfigurationStrategyHierarchicalTestExecutorService.TestTask| Constructor and Description |
|---|
ForkJoinPoolHierarchicalTestExecutorService(ConfigurationParameters configurationParameters)
Create a new
ForkJoinPoolHierarchicalTestExecutorService based on
the supplied ConfigurationParameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this service and let it perform any required cleanup work.
|
void |
invokeAll(List<? extends HierarchicalTestExecutorService.TestTask> tasks)
Invoke all supplied test tasks and block until
their execution has finished.
|
Future<Void> |
submit(HierarchicalTestExecutorService.TestTask testTask)
Submit the supplied test task to be executed by
this service.
|
public ForkJoinPoolHierarchicalTestExecutorService(ConfigurationParameters configurationParameters)
ForkJoinPoolHierarchicalTestExecutorService based on
the supplied ConfigurationParameters.public Future<Void> submit(HierarchicalTestExecutorService.TestTask testTask)
HierarchicalTestExecutorServiceImplementations may execute the task asynchronously as long as its execution mode is concurrent.
Implementations must generally acquire and release the task's resource lock before and after its execution unless they execute all tests in the same thread which upholds the same guarantees.
submit in interface HierarchicalTestExecutorServicetestTask - the test task to be executedHierarchicalTestExecutorService.invokeAll(List)public void invokeAll(List<? extends HierarchicalTestExecutorService.TestTask> tasks)
HierarchicalTestExecutorServiceImplementations may execute one or multiple of the supplied tasks in parallel as long as their execution mode is concurrent.
Implementations must generally acquire and release each task's resource lock before and after its execution unless they execute all tests in the same thread which upholds the same guarantees.
invokeAll in interface HierarchicalTestExecutorServicetasks - the test tasks to be executedHierarchicalTestExecutorService.submit(TestTask)public void close()
HierarchicalTestExecutorServiceFor example, thread-based implementations should usually close their thread pools in this method.
close in interface AutoCloseableclose in interface HierarchicalTestExecutorServiceCopyright © 2024. All rights reserved.