# Class SafeForkJoinWorkerThreadFactory

java.lang.Object
org.apache.catalina.startup.SafeForkJoinWorkerThreadFactory

All Implemented Interfaces:
  `ForkJoinPool.ForkJoinWorkerThreadFactory`

public class SafeForkJoinWorkerThreadFactory extends Object implements ForkJoinPool.ForkJoinWorkerThreadFactory
Provides a `ForkJoinPool.ForkJoinWorkerThreadFactory` that provides `ForkJoinWorkerThread`s 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`.

## Constructor Summary

Constructors
Constructor
Description
`SafeForkJoinWorkerThreadFactory()`

## Method Summary

Modifier and Type
Method
Description
`ForkJoinWorkerThread`
`newThread(ForkJoinPool pool)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Details

### SafeForkJoinWorkerThreadFactory

public SafeForkJoinWorkerThreadFactory()

## Method Details

### newThread

public ForkJoinWorkerThread newThread(ForkJoinPool pool)

Specified by:
  `newThread` in interface `ForkJoinPool.ForkJoinWorkerThreadFactory`