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 SummaryConstructorsConstructorDescriptionNamingThreadFactory(ThreadFactory delegate, String name) Creates a new naming factory.
- 
Method Summary
- 
Constructor Details- 
NamingThreadFactoryCreates a new naming factory.- Parameters:
- delegate- a baseline factory, such as- Executors.defaultThreadFactory()or- DaemonThreadFactoryor- ExceptionCatchingThreadFactory
- name- an identifier to be used in thread names; might be e.g. your- Class.getSimpleName()
 
 
- 
- 
Method Details- 
newThread- Specified by:
- newThreadin interface- ThreadFactory
 
 
-