Package io.quarkus.bootstrap.forkjoin
Class QuarkusForkJoinWorkerThreadFactory
- java.lang.Object
-
- io.quarkus.bootstrap.forkjoin.QuarkusForkJoinWorkerThreadFactory
-
- All Implemented Interfaces:
ForkJoinPool.ForkJoinWorkerThreadFactory
public final class QuarkusForkJoinWorkerThreadFactory extends Object implements ForkJoinPool.ForkJoinWorkerThreadFactory
This implementation of JDK's ForkJoinPool.ForkJoinWorkerThreadFactory needs to be enabled by setting system propertyjava.util.concurrent.ForkJoinPool.common.threadFactoryto this class name, so to allow Quarkus to set the contextual classloader to the correct runtime classloader for each thread being started by the common pool. Otherwise the system classloader will be set, which is unable to load all application resources.
-
-
Constructor Summary
Constructors Constructor Description QuarkusForkJoinWorkerThreadFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForkJoinWorkerThreadnewThread(ForkJoinPool pool)
-
-
-
Method Detail
-
newThread
public ForkJoinWorkerThread newThread(ForkJoinPool pool)
- Specified by:
newThreadin interfaceForkJoinPool.ForkJoinWorkerThreadFactory
-
-