public class DefaultThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
ThreadFactory
实现。
Modifier and Type | Field and Description |
---|---|
protected java.lang.ThreadGroup |
threadGroup |
Constructor and Description |
---|
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) |
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)
Copyright © 2008–2018 The Netty Project. All rights reserved.