Class InstrumentedExecutorService

  • All Implemented Interfaces:
    Executor, ExecutorService

    public class InstrumentedExecutorService
    extends Object
    implements ExecutorService
    An ExecutorService 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.