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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThis 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, int priority) NamedThreadFactory(String threadName, Runnable uncaughtExceptionHook) NamedThreadFactory(String threadName, Runnable uncaughtExceptionHook, int priority) -
Method Summary
-
Field Details
-
UNSPECIFIED_PRIORITY
public static final int UNSPECIFIED_PRIORITY- See Also:
-
-
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
-
NamedThreadFactory
-
NamedThreadFactory
-
-
Method Details
-
newThreadWithName
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-