Class ThreadScopedLongAdderCounter
- java.lang.Object
-
- org.apache.bookkeeper.stats.prometheus.ThreadScopedLongAdderCounter
-
-
Constructor Summary
Constructors Constructor Description ThreadScopedLongAdderCounter(PrometheusMetricsProvider provider, ScopeContext scopeContext, java.util.Map<java.lang.String,java.lang.String> labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCount(long delta)
Add delta to the value associated with this stat.void
addLatency(long eventLatency, java.util.concurrent.TimeUnit unit)
An operation succeeded with the given eventLatency.void
clear()
Clear this stat.void
dec()
Decrement the value associated with this stat.java.lang.Long
get()
Get the value associated with this stat.void
inc()
Increment the value associated with this stat.
-
-
-
Constructor Detail
-
ThreadScopedLongAdderCounter
public ThreadScopedLongAdderCounter(PrometheusMetricsProvider provider, ScopeContext scopeContext, java.util.Map<java.lang.String,java.lang.String> labels)
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:Counter
Clear this stat.
-
inc
public void inc()
Description copied from interface:Counter
Increment the value associated with this stat.
-
dec
public void dec()
Description copied from interface:Counter
Decrement the value associated with this stat.
-
addCount
public void addCount(long delta)
Description copied from interface:Counter
Add delta to the value associated with this stat.
-
addLatency
public void addLatency(long eventLatency, java.util.concurrent.TimeUnit unit)
Description copied from interface:Counter
An operation succeeded with the given eventLatency. Update stats to reflect the same- Specified by:
addLatency
in interfaceCounter
- Parameters:
eventLatency
- The event latency
-
-