Class NamedThreadFactory
java.lang.Object
com.github.thought2code.mcp.annotated.common.NamedThreadFactory
- All Implemented Interfaces:
ThreadFactory
A thread factory that creates threads with a specified name prefix.
- Author:
- codeboyzhou
-
Constructor Summary
ConstructorsConstructorDescriptionNamedThreadFactory(String namePrefix) Creates a new instance ofNamedThreadFactorywith the specified name prefix. -
Method Summary
-
Constructor Details
-
NamedThreadFactory
Creates a new instance ofNamedThreadFactorywith the specified name prefix.- Parameters:
namePrefix- the name prefix for threads created by this factory
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-