public FiberScheduler(String name, int parallelism, MonitorType monitorType, boolean detailedInfo) {
this(createForkJoinPool(name, parallelism, monitorType), detailedInfo);
}
private static ForkJoinPool createForkJoinPool(String name, int parallelism, MonitorType monitorType) {
final MonitoredForkJoinPool fjPool = new MonitoredForkJoinPool(name, parallelism, new NamingForkJoinWorkerFactory(name), null, true);
fjPool.setMonitor(createForkJoinPoolMonitor(name, fjPool, monitorType));
return fjPool;
}