• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sonus21 / rqueue / 25621442036

10 May 2026 06:06AM UTC coverage: 83.337% (-0.06%) from 83.396%
25621442036

Pull #297

github

web-flow
Merge 151ec0fb3 into a868dcde0
Pull Request #297: Nats scheduling fix

2625 of 3487 branches covered (75.28%)

Branch coverage included in aggregate %.

129 of 180 new or added lines in 12 files covered. (71.67%)

11 existing lines in 3 files now uncovered.

7833 of 9062 relevant lines covered (86.44%)

0.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/rqueue-core/src/main/java/com/github/sonus21/rqueue/metrics/RqueueMetricsCounter.java
1
/*
2
 * Copyright (c) 2019-2026 Sonu Kumar
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * You may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and limitations under the License.
14
 *
15
 */
16

17
package com.github.sonus21.rqueue.metrics;
18

19
public interface RqueueMetricsCounter {
20

21
  void updateFailureCount(String queueName);
22

23
  void updateExecutionCount(String queueName);
24

25
  /**
26
   * Consumer-aware failure increment. When a queue carries multiple {@code @RqueueListener}
27
   * methods with distinct {@code consumerName} overrides, each consumer has its own counter
28
   * registered under {@code (queueName, consumerName)}; calling the bare-queue overload would
29
   * route every increment to the same (last-registered) counter and silently lose per-consumer
30
   * counts. Defaults to the queue-level path so callers that don't have a consumer name keep
31
   * working unchanged.
32
   */
33
  default void updateFailureCount(String queueName, String consumerName) {
NEW
34
    updateFailureCount(queueName);
×
NEW
35
  }
×
36

37
  /** Consumer-aware execution increment. See {@link #updateFailureCount(String, String)}. */
38
  default void updateExecutionCount(String queueName, String consumerName) {
NEW
39
    updateExecutionCount(queueName);
×
NEW
40
  }
×
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc