com.google.common.util.concurrent
Class DaemonThreadFactory

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

@Beta
public class DaemonThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory

Wraps another ThreadFactory, making all new threads daemon threads.

Since:
1
Author:
Charles Fry, Harendra Verma

Constructor Summary
DaemonThreadFactory(java.util.concurrent.ThreadFactory factory)
           
 
Method Summary
 java.lang.Thread newThread(java.lang.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(java.util.concurrent.ThreadFactory factory)
Method Detail

newThread

public java.lang.Thread newThread(java.lang.Runnable r)
Specified by:
newThread in interface java.util.concurrent.ThreadFactory


Copyright © 2010 Google. All Rights Reserved.