public static final class ForkJoinPool.AlluxioForkJoinWorkerThreadFactory extends Object implements ForkJoinPool.ForkJoinWorkerThreadFactory
Constructor and Description |
---|
AlluxioForkJoinWorkerThreadFactory(String threadNameFormat,
boolean isDaemon)
Creates a new thread-factory for
ForkJoinPool . |
Modifier and Type | Method and Description |
---|---|
ForkJoinWorkerThread |
newThread(ForkJoinPool pool)
Returns a new worker thread operating in the given pool.
|
public AlluxioForkJoinWorkerThreadFactory(String threadNameFormat, boolean isDaemon)
ForkJoinPool
.threadNameFormat
- thread name formatisDaemon
- is daemonpublic final ForkJoinWorkerThread newThread(ForkJoinPool pool)
ForkJoinPool.ForkJoinWorkerThreadFactory
execute
) causing attempted thread
creation. If this method returns null or throws an exception, it is not retried until the
next attempted creation (for example another call to execute
).newThread
in interface ForkJoinPool.ForkJoinWorkerThreadFactory
pool
- the pool this thread works innull
if the request to create a thread is rejectedCopyright © 2023. All Rights Reserved.