org.littleshoot.util
Class DaemonThreadFactory

java.lang.Object
  extended by org.littleshoot.util.DaemonThreadFactory
All Implemented Interfaces:
ThreadFactory

public class DaemonThreadFactory
extends Object
implements ThreadFactory

A thread factory that creates daemon threads.


Constructor Summary
DaemonThreadFactory(String name)
          Creates a new daemon thread 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(String name)
Creates a new daemon thread factory.

Parameters:
name - The prefix name for new threads.
Method Detail

newThread

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


Copyright © 2011-2013 LittleShoot. All Rights Reserved.