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

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

public class SystemAuthorityThreadFactory
extends Object
implements ThreadFactory

ThreadFactory that allows you to name the threads and create a thread with a All threads created with this factory use SYSTEM_AUTHORITY security context.


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

SystemAuthorityThreadFactory

public SystemAuthorityThreadFactory(String threadName)

SystemAuthorityThreadFactory

public SystemAuthorityThreadFactory(String threadName,
                                    Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Method Detail

newThread

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


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.