org.compass.core.util.concurrent
Class SingleThreadThreadFactory
java.lang.Object
org.compass.core.util.concurrent.SingleThreadThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public class SingleThreadThreadFactory
- extends Object
- implements ThreadFactory
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleThreadThreadFactory
public SingleThreadThreadFactory(String name,
boolean daemon)
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.