Class MicrometerJobWorkerMetrics

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

public final class MicrometerJobWorkerMetrics extends Object implements JobWorkerMetrics
  • Constructor Summary

    Constructors
    Constructor
    Description
    MicrometerJobWorkerMetrics(io.micrometer.core.instrument.Counter jobActivatedCounter, io.micrometer.core.instrument.Counter jobHandledCounter, io.micrometer.core.instrument.Counter zeebeJobActivatedCounter, io.micrometer.core.instrument.Counter zeebeJobHandledCounter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    jobActivated(int count)
    Called every time one or more jobs are activated.
    void
    jobHandled(int count)
    Called every time one or more jobs are handled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MicrometerJobWorkerMetrics

      public MicrometerJobWorkerMetrics(io.micrometer.core.instrument.Counter jobActivatedCounter, io.micrometer.core.instrument.Counter jobHandledCounter, io.micrometer.core.instrument.Counter zeebeJobActivatedCounter, io.micrometer.core.instrument.Counter zeebeJobHandledCounter)
  • 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