Class SafeForkJoinWorkerThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory

    public class SafeForkJoinWorkerThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory
    Provides a ForkJoinPool.ForkJoinWorkerThreadFactory that provides ForkJoinWorkerThreads that won't trigger memory leaks due to retained references to web application class loaders.

    Note: This class must be available on the boot strap class path for it to be visible to ForkJoinPool.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.ForkJoinWorkerThread newThread​(java.util.concurrent.ForkJoinPool pool)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SafeForkJoinWorkerThreadFactory

        public SafeForkJoinWorkerThreadFactory()
    • Method Detail

      • newThread

        public java.util.concurrent.ForkJoinWorkerThread newThread​(java.util.concurrent.ForkJoinPool pool)
        Specified by:
        newThread in interface java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory