Class WorkerThreadFactory
java.lang.Object
org.eclipse.aether.util.concurrency.WorkerThreadFactory
- All Implemented Interfaces:
ThreadFactory
A factory to create worker threads with a given name prefix.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ThreadFactoryprivate final Stringprivate static final AtomicIntegerprivate final AtomicInteger -
Constructor Summary
ConstructorsConstructorDescriptionWorkerThreadFactory(String namePrefix) Creates a new thread factory whose threads will have names using the specified prefix. -
Method Summary
-
Field Details
-
factory
-
namePrefix
-
threadIndex
-
POOL_INDEX
-
-
Constructor Details
-
WorkerThreadFactory
Creates a new thread factory whose threads will have names using the specified prefix.- Parameters:
namePrefix- The prefix for the thread names, may benullor empty to derive the prefix from the caller's simple class name.
-
-
Method Details
-
getCallerSimpleClassName
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-