com.taobao.metamorphosis.utils
类 NamedThreadFactory

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.NamedThreadFactory
所有已实现的接口:
ThreadFactory

public class NamedThreadFactory
extends Object
implements ThreadFactory

描述:线程的Factory类,以便自定义线程名

作者:
bixuan

构造方法摘要
NamedThreadFactory()
           
NamedThreadFactory(String name)
           
 
方法摘要
static String generateNamePrefix(String name)
           
 Thread newThread(Runnable r)
           
 
从类 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.