com.google.common.util.concurrent
Class DaemonThreadFactory

java.lang.Object
  extended by com.google.common.util.concurrent.DaemonThreadFactory
All Implemented Interfaces:
ThreadFactory

public class DaemonThreadFactory
extends Object
implements ThreadFactory

Wraps another ThreadFactory, making all new threads daemon threads.

Since:
2009.09.15 tentative
Author:
Charles Fry, Harendra Verma

Constructor Summary
DaemonThreadFactory(ThreadFactory factory)
           
 
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

DaemonThreadFactory

public DaemonThreadFactory(ThreadFactory factory)
Method Detail

newThread

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