org.modeshape.common.util
Class NamedThreadFactory

java.lang.Object
  extended by org.modeshape.common.util.NamedThreadFactory
All Implemented Interfaces:
ThreadFactory

public class NamedThreadFactory
extends Object
implements ThreadFactory

The thread factory that lets us adjust the names of the threads.

See Also:
Executors.defaultThreadFactory()

Constructor Summary
NamedThreadFactory(String poolName)
           
 
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 poolName)
Method Detail

newThread

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


Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.