Class NameableThreadFactory

    • Constructor Detail

      • NameableThreadFactory

        public NameableThreadFactory​(String _name,
                                     boolean _daemonizeThreads)
        Create a new ThreadFactory instance. The thread name is created like this: _name + THREAD_NUMBER e.g: connectionPool-1 If _name is null or blank, UnnamedThreadPool-POOL_NUMBER-thread-THREAD_NUMBER will be used.
        Parameters:
        _name - prefix for all thread names
        _daemonizeThreads - turn all created threads to daemon threads