public static interface ForkJoinPool.ForkJoinWorkerThreadFactory
java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory |
用于创建新的ForkJoinWorkerThread
s的工厂。 ForkJoinWorkerThreadFactory
必须定义并用于扩展基本功能的ForkJoinWorkerThread
子类或使用不同上下文初始化线程。
公共方法(Public methods) |
|
---|---|
abstract ForkJoinWorkerThread |
newThread(ForkJoinPool pool) 返回在给定池中运行的新工作线程。 |
ForkJoinWorkerThread newThread (ForkJoinPool pool)
返回在给定池中运行的新工作线程。
参数(Parameters) | |
---|---|
pool |
ForkJoinPool : the pool this thread works in |
返回(Returns) | |
---|---|
ForkJoinWorkerThread |
the new worker thread, or null if the request to create a thread is rejected |
抛出异常(Throws) | |
---|---|
NullPointerException |
if the pool is null |