com.taobao.metamorphosis.utils
类 NamedThreadFactory
java.lang.Object
com.taobao.metamorphosis.utils.NamedThreadFactory
- 所有已实现的接口:
- ThreadFactory
public class NamedThreadFactory
- extends Object
- implements ThreadFactory
描述:线程的Factory类,以便自定义线程名
- 作者:
- bixuan
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedThreadFactory
public NamedThreadFactory()
NamedThreadFactory
public NamedThreadFactory(String name)
generateNamePrefix
public static String generateNamePrefix(String name)
newThread
public Thread newThread(Runnable r)
- 指定者:
- 接口
ThreadFactory
中的 newThread
Copyright © 2010–2013. All rights reserved.