Class ExecutorUtils


  • public class ExecutorUtils
    extends java.lang.Object
    Executor/Thread related utils.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutorUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.ThreadFactory getThreadFactory​(java.lang.String nameFormat, boolean daemon)
      Get a ThreadFactory suitable for use in the current environment.
      • Methods inherited from class java.lang.Object

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

      • ExecutorUtils

        public ExecutorUtils()
    • Method Detail

      • getThreadFactory

        public static java.util.concurrent.ThreadFactory getThreadFactory​(java.lang.String nameFormat,
                                                                          boolean daemon)
        Get a ThreadFactory suitable for use in the current environment.
        Parameters:
        nameFormat - to apply to threads created by the factory.
        daemon - true if the threads the factory creates are daemon threads, false otherwise.
        Returns:
        a ThreadFactory.