- java.lang.Object
-
- io.netty5.util.concurrent.DefaultThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class DefaultThreadFactory extends Object implements ThreadFactory
AThreadFactory
implementation with a simple naming rule.
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadGroup
threadGroup
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Thread
newThread(Runnable r)
protected Thread
newThread(Runnable r, String name)
static String
toPoolName(Class<?> poolType)
-
-
-
Field Detail
-
threadGroup
protected final ThreadGroup threadGroup
-
-
Constructor Detail
-
DefaultThreadFactory
public DefaultThreadFactory(Class<?> poolType)
-
DefaultThreadFactory
public DefaultThreadFactory(String poolName)
-
DefaultThreadFactory
public DefaultThreadFactory(Class<?> poolType, boolean daemon)
-
DefaultThreadFactory
public DefaultThreadFactory(String poolName, boolean daemon)
-
DefaultThreadFactory
public DefaultThreadFactory(Class<?> poolType, int priority)
-
DefaultThreadFactory
public DefaultThreadFactory(String poolName, int priority)
-
DefaultThreadFactory
public DefaultThreadFactory(Class<?> poolType, boolean daemon, int priority)
-
DefaultThreadFactory
public DefaultThreadFactory(String poolName, boolean daemon, int priority, ThreadGroup threadGroup)
-
DefaultThreadFactory
public DefaultThreadFactory(String poolName, boolean daemon, int priority)
-
-