Class DaemonThreadFactory

java.lang.Object
com.linkedin.venice.utils.DaemonThreadFactory
All Implemented Interfaces:
ThreadFactory
Direct Known Subclasses:
RandomAccessDaemonThreadFactory

public class DaemonThreadFactory extends Object implements ThreadFactory
A thread factory that sets the threads to run as daemons. (Otherwise things that embed the threadpool can't shut themselves down).
  • Field Details

  • Constructor Details

    • DaemonThreadFactory

      public DaemonThreadFactory(String threadNamePrefix, @Nullable LogContext logContext)
    • DaemonThreadFactory

      public DaemonThreadFactory(String threadNamePrefix)
    • DaemonThreadFactory

      public DaemonThreadFactory(String threadNamePrefix, int priority, @Nullable LogContext logContext)
      Parameters:
      priority - the priority for created threads, or UNSPECIFIED_PRIORITY to leave it at the JVM default.
  • Method Details