com.atlassian.bamboo.build.pipeline.concurrent
Class NamedThreadFactory

java.lang.Object
  extended by com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

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

ThreadFactory that allows you to name the threads and create a thread with a


Constructor Summary
NamedThreadFactory(java.lang.String threadName)
           
NamedThreadFactory(java.lang.String threadName, java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
           
 
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 threadName)

NamedThreadFactory

public NamedThreadFactory(java.lang.String threadName,
                          java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Method Detail

newThread

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


Copyright © 2011 Atlassian. All Rights Reserved.