Package alluxio.util

Class ThreadFactoryUtils


  • @ThreadSafe
    public final class ThreadFactoryUtils
    extends java.lang.Object
    Utility methods for the ThreadFactory class.
    • Method Detail

      • build

        public static java.util.concurrent.ThreadFactory build​(java.lang.String nameFormat,
                                                               boolean isDaemon)
        Creates a ThreadFactory that spawns off threads.
        Parameters:
        nameFormat - name pattern for each thread. should contain '%d' to distinguish between threads.
        isDaemon - if true, the ThreadFactory will create daemon threads.
        Returns:
        the created factory