Class NamedThreadFactory

  • All Implemented Interfaces:
    ThreadFactory

    public final class NamedThreadFactory
    extends Object
    implements ThreadFactory
    Class to implement a named ThreadFactory
    • Constructor Detail

      • NamedThreadFactory

        public NamedThreadFactory​(String format)
        Constructor
        Parameters:
        format - format
    • Method Detail

      • newThread

        public Thread newThread​(Runnable r)
        Method to create a new Thread
        Specified by:
        newThread in interface ThreadFactory
        Parameters:
        r - a runnable to be executed by new thread instance
        Returns:
        the Thread