public static interface ForkJoinPool.ForkJoinWorkerThreadFactory
ForkJoinWorkerThread
s厂。一个
ForkJoinWorkerThreadFactory
必须定义用于
ForkJoinWorkerThread
子类扩展基础功能或不同的语境初始化线程。
Modifier and Type | Method and Description |
---|---|
ForkJoinWorkerThread |
newThread(ForkJoinPool pool)
返回给定池中的一个新的工作线程。
|
ForkJoinWorkerThread newThread(ForkJoinPool pool)
pool
这个线程池中
NullPointerException
-如果池是空的
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.