Class NamingThreadFactory

java.lang.Object
io.deephaven.util.thread.NamingThreadFactory
All Implemented Interfaces:
ThreadFactory

public class NamingThreadFactory extends Object implements ThreadFactory
  • Constructor Details

    • NamingThreadFactory

      public NamingThreadFactory(Class<?> clazz, String name)
      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 thread
      name - a name component to add after the class name when naming each thread
    • NamingThreadFactory

      public NamingThreadFactory(Class<?> clazz, String name, boolean daemon)
      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 thread
      name - a name component to add after the class name when naming each thread
      daemon - true to make each thread a daemon thread
    • NamingThreadFactory

      public 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.
      Parameters:
      threadGroup - a thread group to add each thread to
      clazz - a class to use when naming each thread
      name - a name component to add after the class name when naming each thread
      daemon - true to make each thread a daemon thread
  • Method Details