Package org.apache.catalina.startup
Class SafeForkJoinWorkerThreadFactory
- java.lang.Object
-
- org.apache.catalina.startup.SafeForkJoinWorkerThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory
public class SafeForkJoinWorkerThreadFactory extends java.lang.Object implements java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactoryProvides aForkJoinPool.ForkJoinWorkerThreadFactorythat providesForkJoinWorkerThreads that won't trigger memory leaks due to retained references to web application class loaders.Note: This class must be available on the bootstrap class path for it to be visible to
ForkJoinPool.
-
-
Constructor Summary
Constructors Constructor Description SafeForkJoinWorkerThreadFactory()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ForkJoinWorkerThreadnewThread(java.util.concurrent.ForkJoinPool pool)Create a newSafeForkJoinWorkerThreadFactory.SafeForkJoinWorkerThreadfor the given pool.
-
-
-
Method Detail
-
newThread
public java.util.concurrent.ForkJoinWorkerThread newThread(java.util.concurrent.ForkJoinPool pool)
Create a newSafeForkJoinWorkerThreadFactory.SafeForkJoinWorkerThreadfor the given pool.- Specified by:
newThreadin interfacejava.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory- Parameters:
pool- the fork-join pool- Returns:
- a new worker thread with a safe context class loader
-
-