Package hudson.remoting
Class NamingThreadFactory
java.lang.Object
hudson.remoting.NamingThreadFactory
- All Implemented Interfaces:
ThreadFactory
Thread factory that sets thread name so we know who is responsible for so many threads being created.
- Since:
- 2.52
-
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
name
- an identifier to be used in thread names; might be e.g. yourClass.getSimpleName()
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-