public class DefaultThreadFactory extends Object implements ThreadFactory
ThreadFactory
implementation with a simple naming rule.Modifier and Type | Field and Description |
---|---|
protected ThreadGroup |
threadGroup |
Constructor and Description |
---|
DefaultThreadFactory(Class<?> poolType) |
DefaultThreadFactory(Class<?> poolType,
boolean daemon) |
DefaultThreadFactory(Class<?> poolType,
boolean daemon,
int priority) |
DefaultThreadFactory(Class<?> poolType,
int priority) |
DefaultThreadFactory(String poolName) |
DefaultThreadFactory(String poolName,
boolean daemon) |
DefaultThreadFactory(String poolName,
boolean daemon,
int priority) |
DefaultThreadFactory(String poolName,
boolean daemon,
int priority,
ThreadGroup threadGroup) |
DefaultThreadFactory(String poolName,
int priority) |
Modifier and Type | Method and Description |
---|---|
Thread |
newThread(Runnable r) |
protected Thread |
newThread(Runnable r,
String name) |
static String |
toPoolName(Class<?> poolType) |
protected final ThreadGroup threadGroup
public DefaultThreadFactory(Class<?> poolType)
public DefaultThreadFactory(String poolName)
public DefaultThreadFactory(Class<?> poolType, boolean daemon)
public DefaultThreadFactory(String poolName, boolean daemon)
public DefaultThreadFactory(Class<?> poolType, int priority)
public DefaultThreadFactory(String poolName, int priority)
public DefaultThreadFactory(Class<?> poolType, boolean daemon, int priority)
public DefaultThreadFactory(String poolName, boolean daemon, int priority, ThreadGroup threadGroup)
public DefaultThreadFactory(String poolName, boolean daemon, int priority)
Copyright © 2008–2019 The Netty Project. All rights reserved.