public final class WorkerThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
WorkerThreadFactory(String namePrefix)
Creates a new thread factory whose threads will have names using the specified prefix.
|
public WorkerThreadFactory(String namePrefix)
namePrefix
- The prefix for the thread names, may be null
or empty to derive the prefix from the
caller's simple class name.public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.