Class WorkerThreadFactory
- java.lang.Object
-
- org.eclipse.aether.util.concurrency.WorkerThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public final class WorkerThreadFactory extends Object implements ThreadFactory
A factory to create worker threads with a given name prefix.
-
-
Constructor Summary
Constructors Constructor Description WorkerThreadFactory(String namePrefix)
Creates a new thread factory whose threads will have names using the specified prefix.
-
-
-
Constructor Detail
-
WorkerThreadFactory
public WorkerThreadFactory(String namePrefix)
Creates a new thread factory whose threads will have names using the specified prefix.- Parameters:
namePrefix
- The prefix for the thread names, may benull
or empty to derive the prefix from the caller's simple class name.
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-