com.sag.osami.contextstore.util
Class NamedThreadFactory

java.lang.Object
  extended by com.sag.osami.contextstore.util.NamedThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

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

Thread factory with configurable thread names. A count can be appended to the name.


Constructor Summary
NamedThreadFactory(java.lang.String prefix, boolean doCount)
           
 
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

NamedThreadFactory

public NamedThreadFactory(java.lang.String prefix,
                          boolean doCount)
Method Detail

newThread

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