org.compass.core.util.concurrent
Class SingleThreadThreadFactory

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

public class SingleThreadThreadFactory
extends Object
implements ThreadFactory

Author:
kimchy

Constructor Summary
SingleThreadThreadFactory(String name, boolean daemon)
           
 
Method Summary
 Thread newThread(Runnable r)
          Constructs a new Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleThreadThreadFactory

public SingleThreadThreadFactory(String name,
                                 boolean daemon)
Method Detail

newThread

public Thread newThread(Runnable r)
Description copied from interface: ThreadFactory
Constructs a new Thread. Implementations may also initialize priority, name, daemon status, ThreadGroup, etc.

Specified by:
newThread in interface ThreadFactory
Parameters:
r - a runnable to be executed by new thread instance
Returns:
constructed thread


Copyright (c) 2004-2006 The Compass Project.