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.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ForkJoinWorkerThread | newThread(ForkJoinPool
the pool this thread works in pool)Implements java. Returns a new worker thread operating in the given pool. |
| SafeForkJoinWorkerThreadFactory | back to summary |
|---|---|
| public SafeForkJoinWorkerThreadFactory() | |
| newThread | back to summary |
|---|---|
| public ForkJoinWorkerThread newThread(ForkJoinPool pool) Implements java. Doc from java. Returns a new worker thread operating in the given pool.
Returning null or throwing an exception may result in tasks
never being executed. If this method throws an exception,
it is relayed to the caller of the method (for example
| |
| Access | Constructor and Description |
|---|---|
| protected |
| SafeForkJoinWorkerThread | back to summary |
|---|---|
| protected SafeForkJoinWorkerThread(ForkJoinPool pool) | |