java.lang.Object
net.i2p.util.SimpleTimer2.WatchdogThreadFactory
All Implemented Interfaces:
ThreadFactory
Enclosing class:
SimpleTimer2

private static class SimpleTimer2.WatchdogThreadFactoryextends Object implements ThreadFactory
Thread factory for the saturation watchdog. Mirrors SimpleTimer2.CustomThreadFactory's daemon flag and priority: the watchdog is scheduled just as reliably as the pool threads it watches, because its entire job is to report a pool that cannot report itself. The name is taken whole instead of generated so a thread dump shows the watchdog apart from the pool threads it monitors.
  • Field Details

    • _name

      private final String _name
      Name prefix for the watchdog threads.
  • Constructor Details

    • WatchdogThreadFactory

      WatchdogThreadFactory(String name)
      Builds the watchdog's thread factory.
      Parameters:
      name - the name prefix for the threads
  • Method Details