Class TaskThreadFactory
java.lang.Object
org.apache.tomcat.util.threads.TaskThreadFactory
- All Implemented Interfaces:
ThreadFactory
Simple task thread factory to use to create threads for an executor implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskThreadFactory(String namePrefix, boolean daemon, int priority) Creates a new TaskThreadFactory. -
Method Summary
-
Constructor Details
-
TaskThreadFactory
Creates a new TaskThreadFactory.- Parameters:
namePrefix- the prefix for thread namesdaemon- whether threads should be daemon threadspriority- the thread priority
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-