public class NamedThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
构造器和说明 |
---|
NamedThreadFactory(java.lang.String namePrefix) |
限定符和类型 | 方法和说明 |
---|---|
NamedThreadFactory |
daemon(boolean daemon)
线程守护
|
NamedThreadFactory |
group(java.lang.ThreadGroup group)
线程组
|
java.lang.Thread |
newThread(java.lang.Runnable r) |
NamedThreadFactory |
priority(int priority)
优先级
|
public NamedThreadFactory(java.lang.String namePrefix)
namePrefix
- 名字前缀public NamedThreadFactory group(java.lang.ThreadGroup group)
public NamedThreadFactory daemon(boolean daemon)
public NamedThreadFactory priority(int priority)
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
在接口中 java.util.concurrent.ThreadFactory