net.myrrix.common
Class NamedThreadFactory

java.lang.Object
  extended by net.myrrix.common.NamedThreadFactory
All Implemented Interfaces:
ThreadFactory

public final class NamedThreadFactory
extends Object
implements ThreadFactory

Creates threads with a given name prefix and daemon status.

Author:
Sean Owen

Constructor Summary
NamedThreadFactory(boolean daemon, String prefix)
           
 
Method Summary
 Thread newThread(Runnable runnable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedThreadFactory

public NamedThreadFactory(boolean daemon,
                          String prefix)
Method Detail

newThread

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


Copyright © 2012. All Rights Reserved.