Class MicrometerJobWorkerMetrics
java.lang.Object
io.camunda.zeebe.client.impl.worker.metrics.MicrometerJobWorkerMetrics
- All Implemented Interfaces:
JobWorkerMetrics
-
Constructor Summary
ConstructorDescriptionMicrometerJobWorkerMetrics
(io.micrometer.core.instrument.Counter jobActivatedCounter, io.micrometer.core.instrument.Counter jobHandledCounter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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 interfaceJobWorkerMetrics
- 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 interfaceJobWorkerMetrics
- Parameters:
count
- the amount of jobs that were handled
-