com.alee.utils.concurrent
Class DaemonThreadFactory

java.lang.Object
  extended by com.alee.utils.concurrent.DaemonThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

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

A thread factory that only produces daemon threads.

Author:
Adolph C.

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

Constructor Detail

DaemonThreadFactory

public DaemonThreadFactory()
Method Detail

newThread

public java.lang.Thread newThread(java.lang.Runnable r)
Constructs a new daemon thread.

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