Class SystemAuthorityThreadFactory
- java.lang.Object
-
- 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
Constructors Constructor Description SystemAuthorityThreadFactory(String threadName)
SystemAuthorityThreadFactory(String threadName, Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Thread>
TnewThread(@NotNull Class<T> threadClass, @NotNull Runnable r)
@NotNull Thread
newThread(@NotNull Runnable r)
-
-
-
Constructor Detail
-
SystemAuthorityThreadFactory
public SystemAuthorityThreadFactory(String threadName)
-
SystemAuthorityThreadFactory
public SystemAuthorityThreadFactory(String threadName, Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
-
-