Class DaemonThreadFactory

java.lang.Object
org.jruby.threading.DaemonThreadFactory
All Implemented Interfaces:
ThreadFactory

public class DaemonThreadFactory extends Object implements ThreadFactory
A ThreadFactory for when we're using pooled threads; we want to create the threads with daemon = true so they don't keep us from shutting down.
  • Field Details

    • count

      private final AtomicInteger count
    • name

      private final String name
    • priority

      private final int priority
  • Constructor Details

    • DaemonThreadFactory

      public DaemonThreadFactory(String name)
    • DaemonThreadFactory

      public DaemonThreadFactory(String name, int priority)
    • DaemonThreadFactory

      public DaemonThreadFactory()
  • Method Details