List of usage examples for java.util.concurrent ForkJoinPool getCommonPoolParallelism
public static int getCommonPoolParallelism()
From source file:com.eventsourcing.hlc.NTPServerTimeProviderTest.java
@DataProvider(name = "delays", parallel = true) public static Iterator<Object[]> delays() { return IntStream.generate(() -> new Random().nextInt(3000)) .limit(ForkJoinPool.getCommonPoolParallelism() * 10).boxed().map(i -> new Object[] { i }) .collect(Collectors.toList()).iterator(); }