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
- if the pool is null