Class SystemSecurityContextExecutors


  • public class SystemSecurityContextExecutors
    extends Object
    Static methods of this class will produce ListeningExecutorServices that will run their tasks using system security context.
    • Method Detail

      • 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)