Class ThreadCreator


  • public class ThreadCreator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadCreator()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Thread createThread​(java.lang.Runnable target, java.lang.String name, boolean createDaemons, boolean ignored)  
      static java.util.concurrent.ExecutorService createThreadPool​(int min_threads, int max_threads, long keep_alive_time, java.lang.String rejection_policy, java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, ThreadFactory factory, boolean ignored, Log log)  
      static boolean hasVirtualThreads()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadCreator

        public ThreadCreator()
    • Method Detail

      • hasVirtualThreads

        public static boolean hasVirtualThreads()
      • createThread

        public static java.lang.Thread createThread​(java.lang.Runnable target,
                                                    java.lang.String name,
                                                    boolean createDaemons,
                                                    boolean ignored)
      • createThreadPool

        public static java.util.concurrent.ExecutorService createThreadPool​(int min_threads,
                                                                            int max_threads,
                                                                            long keep_alive_time,
                                                                            java.lang.String rejection_policy,
                                                                            java.util.concurrent.BlockingQueue<java.lang.Runnable> queue,
                                                                            ThreadFactory factory,
                                                                            boolean ignored,
                                                                            Log log)