Package org.codice.ddf.platform.util
Class ForkJoinPoolFactory
java.lang.Object
org.codice.ddf.platform.util.ForkJoinPoolFactory
- All Implemented Interfaces:
ForkJoinPool.ForkJoinWorkerThreadFactory
The standard ForkJoinPoolFactory is incompatible with the OSGi security manager. This one uses
one to create standard worker threads to avoid the issue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ForkJoinPoolgetNewForkJoinPool(Thread.UncaughtExceptionHandler handler, boolean asyncMode) final ForkJoinWorkerThreadnewThread(ForkJoinPool pool)
-
Constructor Details
-
ForkJoinPoolFactory
public ForkJoinPoolFactory()
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceForkJoinPool.ForkJoinWorkerThreadFactory
-
getNewForkJoinPool
public static ForkJoinPool getNewForkJoinPool(Thread.UncaughtExceptionHandler handler, boolean asyncMode)
-