org.compass.core.util.concurrent
Class NamedThreadFactory

java.lang.Object
  extended by org.compass.core.util.concurrent.NamedThreadFactory
All Implemented Interfaces:
ThreadFactory

public class NamedThreadFactory
extends Object
implements ThreadFactory

A thread factory that accepts a name prefix and if the thread is going to be a daemon thread or not.

Author:
kimchy

Constructor Summary
NamedThreadFactory(String name, boolean daemon)
           
 
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 name,
                          boolean daemon)
Method Detail

newThread

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


Copyright (c) 2004-2009 The Compass Project.