Class InstrumentedThreadFactory

java.lang.Object
io.dropwizard.metrics5.InstrumentedThreadFactory
All Implemented Interfaces:
ThreadFactory

public class InstrumentedThreadFactory extends Object implements ThreadFactory
A ThreadFactory that monitors the number of threads created, running and terminated.

It will register the metrics using the given (or auto-generated) name as classifier, e.g: "your-thread-delegate.created", "your-thread-delegate.running", etc.