Package hudson.util
Class NamingThreadFactory
java.lang.Object
hudson.util.NamingThreadFactory
- All Implemented Interfaces:
ThreadFactory
Thread factory that sets thread name so we know who is responsible for so many threads being created.
- Since:
- 1.541
-
Constructor Summary
ConstructorDescriptionNamingThreadFactory
(ThreadFactory delegate, String name) Creates a new naming factory. -
Method Summary
-
Constructor Details
-
NamingThreadFactory
Creates a new naming factory.- Parameters:
delegate
- a baseline factory, such asExecutors.defaultThreadFactory()
orDaemonThreadFactory
orExceptionCatchingThreadFactory
name
- an identifier to be used in thread names; might be e.g. yourClass.getSimpleName()
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-