public class DefaultThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
ThreadFactory
implementation with a simple naming rule.限定符和类型 | 字段和说明 |
---|---|
protected java.lang.ThreadGroup |
threadGroup |
构造器和说明 |
---|
DefaultThreadFactory(java.lang.Class<?> poolType) |
DefaultThreadFactory(java.lang.Class<?> poolType,
boolean daemon) |
DefaultThreadFactory(java.lang.Class<?> poolType,
boolean daemon,
int priority) |
DefaultThreadFactory(java.lang.Class<?> poolType,
int priority) |
DefaultThreadFactory(java.lang.String poolName) |
DefaultThreadFactory(java.lang.String poolName,
boolean daemon) |
DefaultThreadFactory(java.lang.String poolName,
boolean daemon,
int priority) |
DefaultThreadFactory(java.lang.String poolName,
boolean daemon,
int priority,
java.lang.ThreadGroup threadGroup) |
DefaultThreadFactory(java.lang.String poolName,
int priority) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable r) |
protected java.lang.Thread |
newThread(java.lang.Runnable r,
java.lang.String name) |
static java.lang.String |
toPoolName(java.lang.Class<?> poolType) |
public DefaultThreadFactory(java.lang.Class<?> poolType)
public DefaultThreadFactory(java.lang.String poolName)
public DefaultThreadFactory(java.lang.Class<?> poolType, boolean daemon)
public DefaultThreadFactory(java.lang.String poolName, boolean daemon)
public DefaultThreadFactory(java.lang.Class<?> poolType, int priority)
public DefaultThreadFactory(java.lang.String poolName, int priority)
public DefaultThreadFactory(java.lang.Class<?> poolType, boolean daemon, int priority)
public DefaultThreadFactory(java.lang.String poolName, boolean daemon, int priority, java.lang.ThreadGroup threadGroup)
public DefaultThreadFactory(java.lang.String poolName, boolean daemon, int priority)
public static java.lang.String toPoolName(java.lang.Class<?> poolType)
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
在接口中 java.util.concurrent.ThreadFactory
protected java.lang.Thread newThread(java.lang.Runnable r, java.lang.String name)