java.lang.Object
net.i2p.util.SimpleTimer2.WatchdogThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
SimpleTimer2
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 Summary
Constructor Summary
ConstructorsMethod Summary
Field Details
_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
newThread
- Specified by:
newThreadin interfaceThreadFactory