Object
NamedThreadFactory
- All Implemented Interfaces:
ThreadFactory
Java default thread factory does not allow you to specify the name for threads it creates. This
thread factory does.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NamedThreadFactory
- Parameters:
name
- threads will be created with this name
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-