Class RqueueCounter
java.lang.Object
com.github.sonus21.rqueue.metrics.RqueueCounter
- All Implemented Interfaces:
RqueueMetricsCounter
Rqueue counter counts the different types of events related to a queue. It's used to count how
many messages have been processed and how many of them have been failed. In the case of failure
count increases.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateExecutionCount(String queueName) voidupdateExecutionCount(String queueName, String consumerName) Consumer-aware execution increment.voidupdateFailureCount(String queueName) voidupdateFailureCount(String queueName, String consumerName) Consumer-aware failure increment.
-
Constructor Details
-
RqueueCounter
-
-
Method Details
-
updateFailureCount
- Specified by:
updateFailureCountin interfaceRqueueMetricsCounter
-
updateExecutionCount
- Specified by:
updateExecutionCountin interfaceRqueueMetricsCounter
-
updateFailureCount
Description copied from interface:RqueueMetricsCounterConsumer-aware failure increment. When a queue carries multiple@RqueueListenermethods with distinctconsumerNameoverrides, each consumer has its own counter registered under(queueName, consumerName); calling the bare-queue overload would route every increment to the same (last-registered) counter and silently lose per-consumer counts. Defaults to the queue-level path so callers that don't have a consumer name keep working unchanged.- Specified by:
updateFailureCountin interfaceRqueueMetricsCounter
-
updateExecutionCount
Description copied from interface:RqueueMetricsCounterConsumer-aware execution increment. SeeRqueueMetricsCounter.updateFailureCount(String, String).- Specified by:
updateExecutionCountin interfaceRqueueMetricsCounter
-