MCPcopy Index your code
hub / github.com/questdb/questdb / NullCounter

Class NullCounter

core/src/main/java/io/questdb/metrics/NullCounter.java:30–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28import org.jetbrains.annotations.NotNull;
29
30public class NullCounter implements Counter, CounterWithOneLabel, CounterWithTwoLabels {
31 public static final NullCounter INSTANCE = new NullCounter();
32
33 private NullCounter() {
34 }
35
36 @Override
37 public void add(long value) {
38 }
39
40 @Override
41 public long getValue() {
42 return 0;
43 }
44
45 @Override
46 public void inc() {
47 }
48
49 @Override
50 public void inc(short label0) {
51 }
52
53 @Override
54 public void inc(short label0, short label1) {
55 }
56
57 @Override
58 public void reset() {
59 }
60
61 @Override
62 public void scrapeIntoPrometheus(@NotNull BorrowableUtf8Sink sink) {
63 }
64}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…