public class ThreadSafeQPSMeter extends Object implements Meter, Serializable
| 构造器和说明 |
|---|
ThreadSafeQPSMeter(String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCount()
Get number of events marked on the meter.
|
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.
|
String |
name()
Returns the name of the associated metric.
|
String |
toString() |
Unit |
unit()
Return the measurement unit for the associated metric.
|
public ThreadSafeQPSMeter(String name)
public void markEvent()
Meterpublic void markEvent(long n)
Meterpublic double getRate()
Meterpublic long getCount()
Meterpublic Unit unit()
MetricMetricTags.UNIT tag in the metric's description.Copyright © 2024 The Apache Software Foundation. All rights reserved.