类 DefaultThreadFactory
java.lang.Object
org.tio.utils.thread.pool.DefaultThreadFactory
- 所有已实现的接口:
ThreadFactory
- 作者:
- tanyaowu 2017年4月28日 下午1:30:39
-
方法概要
修饰符和类型方法说明static DefaultThreadFactorygetInstance(String threadName) static DefaultThreadFactorygetInstance(String threadName, Integer priority) Gets the single INSTANCE of DefaultThreadFactory.Gets the thread pool name.voidsetThreadName(String threadName) Sets the thread name.
-
方法详细资料
-
getInstance
-
getInstance
Gets the single INSTANCE of DefaultThreadFactory.- 参数:
threadName- the thread namepriority- the priority- 返回:
- single INSTANCE of DefaultThreadFactory
-
getThreadPoolName
Gets the thread pool name.- 返回:
- the thread pool name
-
newThread
- 指定者:
newThread在接口中ThreadFactory- 参数:
r-- 返回:
- 另请参阅:
-
setThreadName
Sets the thread name.- 参数:
threadName- the new thread name
-