Class ThreadUtil


  • final class ThreadUtil
    extends java.lang.Object
    Internal thread helper.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ThreadUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.Thread newThread​(java.util.concurrent.ThreadFactory threadFactory, java.lang.Runnable runnable, java.lang.String prefix, boolean daemon)
      Creates a new Thread from the given factory and prefixes it's name with a prefix and sets the daemon flag.
      • Methods inherited from class java.lang.Object

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

      • ThreadUtil

        private ThreadUtil()
    • Method Detail

      • newThread

        static java.lang.Thread newThread​(java.util.concurrent.ThreadFactory threadFactory,
                                          java.lang.Runnable runnable,
                                          java.lang.String prefix,
                                          boolean daemon)
        Creates a new Thread from the given factory and prefixes it's name with a prefix and sets the daemon flag.
        Parameters:
        threadFactory - the thread factory.
        runnable - The runnable to thread.
        prefix - the thread name prefix
        daemon - marks this thread as a daemon thread
        Returns:
        constructed thread, or null if the request to create a thread is rejected