Package com.atlassian.bamboo.executor
Class SystemSecurityContextExecutors
java.lang.Object
com.atlassian.bamboo.executor.SystemSecurityContextExecutors
Static methods of this class will produce
ListeningExecutorService
s that will run their tasks using system security context.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.util.concurrent.ListeningExecutorService
newFixedThreadPool
(int nThreads, @NotNull String threadPoolName) static com.google.common.util.concurrent.ListeningExecutorService
newSingleThreadExecutor
(int maxQueueSize, @NotNull String threadPoolName) static com.google.common.util.concurrent.ListeningExecutorService
newSingleThreadExecutor
(@NotNull String threadPoolName) static com.google.common.util.concurrent.ListeningExecutorService
newThreadPool
(int nThreads, @NotNull String threadPoolName)
-
Method Details
-
newFixedThreadPool
public static com.google.common.util.concurrent.ListeningExecutorService newFixedThreadPool(int nThreads, @NotNull @NotNull String threadPoolName) -
newSingleThreadExecutor
public static com.google.common.util.concurrent.ListeningExecutorService newSingleThreadExecutor(@NotNull @NotNull String threadPoolName) -
newSingleThreadExecutor
public static com.google.common.util.concurrent.ListeningExecutorService newSingleThreadExecutor(int maxQueueSize, @NotNull @NotNull String threadPoolName) -
newThreadPool
public static com.google.common.util.concurrent.ListeningExecutorService newThreadPool(int nThreads, @NotNull @NotNull String threadPoolName)
-