Package io.deephaven.util.thread
Class NamingThreadFactory
java.lang.Object
io.deephaven.util.thread.NamingThreadFactory
- All Implemented Interfaces:
ThreadFactory
-
Constructor Summary
ConstructorDescriptionNamingThreadFactory
(Class<?> clazz, String name) Creates a thread factory using the provided class and name as part of the thread name.NamingThreadFactory
(Class<?> clazz, String name, boolean daemon) Creates a thread factory using the provided class and name as part of the thread name.NamingThreadFactory
(ThreadGroup threadGroup, Class<?> clazz, String name, boolean daemon) Creates a thread factory using the provided class and name as part of the thread name. -
Method Summary
-
Constructor Details
-
NamingThreadFactory
Creates a thread factory using the provided class and name as part of the thread name. All created threads will be daemon threads.- Parameters:
clazz
- a class to use when naming each threadname
- a name component to add after the class name when naming each thread
-
NamingThreadFactory
Creates a thread factory using the provided class and name as part of the thread name.- Parameters:
clazz
- a class to use when naming each threadname
- a name component to add after the class name when naming each threaddaemon
- true to make each thread a daemon thread
-
NamingThreadFactory
Creates a thread factory using the provided class and name as part of the thread name.- Parameters:
threadGroup
- a thread group to add each thread toclazz
- a class to use when naming each threadname
- a name component to add after the class name when naming each threaddaemon
- true to make each thread a daemon thread
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-