Package host.anzo.simon
Class NamedThreadPoolFactory
java.lang.Object
host.anzo.simon.NamedThreadPoolFactory
- All Implemented Interfaces:
ThreadFactory
A factory-class that let's you use named threads in a thread-pool
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNamedThreadPoolFactory(String baseName) Creates a new thread-factory that gives each thread a basename -
Method Summary
-
Constructor Details
-
NamedThreadPoolFactory
Creates a new thread-factory that gives each thread a basename- Parameters:
baseName- the basename for the created threads
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-