Class MicrometerJobWorkerMetrics

java.lang.Object
io.camunda.zeebe.client.impl.worker.metrics.MicrometerJobWorkerMetrics
All Implemented Interfaces:
JobWorkerMetrics

public final class MicrometerJobWorkerMetrics extends Object implements JobWorkerMetrics
  • Constructor Details

    • MicrometerJobWorkerMetrics

      public MicrometerJobWorkerMetrics(io.micrometer.core.instrument.Counter jobActivatedCounter, io.micrometer.core.instrument.Counter jobHandledCounter)
  • Method Details

    • jobActivated

      public void jobActivated(int count)
      Description copied from interface: JobWorkerMetrics
      Called every time one or more jobs are activated.

      NOTE: this is called before the job is worked on.

      Specified by:
      jobActivated in interface JobWorkerMetrics
      Parameters:
      count - the amount of jobs that were activated
    • jobHandled

      public void jobHandled(int count)
      Description copied from interface: JobWorkerMetrics
      Called every time one or more jobs are handled.

      NOTE: this is called after a job has been worked on, successfully or not.

      Specified by:
      jobHandled in interface JobWorkerMetrics
      Parameters:
      count - the amount of jobs that were handled