@Public public interface Meter extends Metric
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Get number of events marked on the meter.
|
default MetricType |
getMetricType() |
double |
getRate()
Returns the current rate of events per second.
|
void |
markEvent()
Mark occurrence of an event.
|
void |
markEvent(long n)
Mark occurrence of multiple events.
|
void markEvent()
void markEvent(long n)
n
- number of events occurreddouble getRate()
long getCount()
default MetricType getMetricType()
getMetricType
in interface Metric
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.