org.apache.hadoop.hbase.executor
Class NamedThreadFactory
java.lang.Object
org.apache.hadoop.hbase.executor.NamedThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public class NamedThreadFactory
- extends Object
- implements ThreadFactory
Returns a named thread with a specified prefix.
TODO: Use guava (com.google.common.util.concurrent.NamingThreadFactory)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedThreadFactory
public NamedThreadFactory(String threadPrefix)
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interface ThreadFactory
Copyright © 2010 Apache Software Foundation. All Rights Reserved.