Package com.linkedin.venice.utils
Class DaemonThreadFactory
java.lang.Object
com.linkedin.venice.utils.DaemonThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Direct Known Subclasses:
RandomAccessDaemonThreadFactory
A thread factory that sets the threads to run as daemons. (Otherwise things
that embed the threadpool can't shut themselves down).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDaemonThreadFactory(String threadNamePrefix) DaemonThreadFactory(String threadNamePrefix, int priority, LogContext logContext) DaemonThreadFactory(String threadNamePrefix, LogContext logContext) -
Method Summary
-
Field Details
-
UNSPECIFIED_PRIORITY
public static final int UNSPECIFIED_PRIORITY- See Also:
-
threadNumber
-
-
Constructor Details
-
DaemonThreadFactory
-
DaemonThreadFactory
-
DaemonThreadFactory
- Parameters:
priority- thepriorityfor created threads, orUNSPECIFIED_PRIORITYto leave it at the JVM default.
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-