Class InstrumentedScheduledExecutorService

java.lang.Object
io.dropwizard.metrics5.InstrumentedScheduledExecutorService
All Implemented Interfaces:
Executor, ExecutorService, ScheduledExecutorService

public class InstrumentedScheduledExecutorService extends Object implements ScheduledExecutorService
An ScheduledExecutorService that monitors the number of tasks submitted, running, completed and also keeps a Timer for the task duration.

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