Package com.couchbase.client.dcp.metrics
Class EventCounter
java.lang.Object
com.couchbase.client.dcp.metrics.EventCounter
Tracks occurrences of an event.
Instances are created via builder(io.micrometer.core.instrument.MeterRegistry, java.lang.String).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EventCounter.BuildervoidIncrements the event count.voidincrement(long amount) Increases the event count by the given amount
-
Method Details
-
builder
public static EventCounter.Builder builder(io.micrometer.core.instrument.MeterRegistry registry, String name) -
increment
public void increment()Increments the event count. -
increment
public void increment(long amount) Increases the event count by the given amount
-