Class MicrometerJobWorkerMetrics
java.lang.Object
io.camunda.client.impl.worker.metrics.MicrometerJobWorkerMetrics
- All Implemented Interfaces:
JobWorkerMetrics
-
Constructor Summary
ConstructorsConstructorDescriptionMicrometerJobWorkerMetrics(io.micrometer.core.instrument.Counter jobActivatedCounter, io.micrometer.core.instrument.Counter jobHandledCounter, io.micrometer.core.instrument.Counter streamInactivityRecreatedCounter) -
Method Summary
Modifier and TypeMethodDescriptionvoidjobActivated(int count) Called every time one or more jobs are activated.voidjobHandled(int count) Called every time one or more jobs are handled.voidCalled every time the streaming job worker recreates its stream because the configured stream inactivity timeout elapsed without any activity.
-
Constructor Details
-
MicrometerJobWorkerMetrics
public MicrometerJobWorkerMetrics(io.micrometer.core.instrument.Counter jobActivatedCounter, io.micrometer.core.instrument.Counter jobHandledCounter, io.micrometer.core.instrument.Counter streamInactivityRecreatedCounter)
-
-
Method Details
-
jobActivated
public void jobActivated(int count) Description copied from interface:JobWorkerMetricsCalled every time one or more jobs are activated.NOTE: this is called before the job is worked on.
- Specified by:
jobActivatedin interfaceJobWorkerMetrics- Parameters:
count- the amount of jobs that were activated
-
jobHandled
public void jobHandled(int count) Description copied from interface:JobWorkerMetricsCalled every time one or more jobs are handled.NOTE: this is called after a job has been worked on, successfully or not.
- Specified by:
jobHandledin interfaceJobWorkerMetrics- Parameters:
count- the amount of jobs that were handled
-
streamInactivityRecreated
public void streamInactivityRecreated()Description copied from interface:JobWorkerMetricsCalled every time the streaming job worker recreates its stream because the configured stream inactivity timeout elapsed without any activity. Useful to monitor whether the inactivity watchdog is firing in a given deployment (e.g. due to an upstream proxy idle close), without relying on log scraping.- Specified by:
streamInactivityRecreatedin interfaceJobWorkerMetrics
-