org.apache.hadoop.hbase.executor
Class NamedThreadFactory

java.lang.Object
  extended by 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)


Constructor Summary
NamedThreadFactory(String threadPrefix)
           
 
Method Summary
 Thread newThread(Runnable r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedThreadFactory

public NamedThreadFactory(String threadPrefix)
Method Detail

newThread

public Thread newThread(Runnable r)
Specified by:
newThread in interface ThreadFactory


Copyright © 2010 Apache Software Foundation. All Rights Reserved.