Package com.linkedin.venice.utils
Class NamedThreadFactory
java.lang.Object
com.linkedin.venice.utils.NamedThreadFactory
- All Implemented Interfaces:
ThreadFactory
A thread factory that sets the threads to create threads with a specific prefix name.
-
Constructor Summary
ConstructorDescriptionThis constructor is used when the thread name is unknown (or do not need to be set at construct time)NamedThreadFactory
(String threadName) NamedThreadFactory
(String threadName, Runnable uncaughtExceptionHook) -
Method Summary
-
Constructor Details
-
NamedThreadFactory
public NamedThreadFactory()This constructor is used when the thread name is unknown (or do not need to be set at construct time) -
NamedThreadFactory
-
NamedThreadFactory
-
-
Method Details
-
newThreadWithName
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-