| 构造器和说明 |
|---|
HistogramImpl(int interval) |
HistogramImpl(int interval,
ReservoirType type) |
HistogramImpl(Reservoir reservoir,
int interval,
int numberOfBucket,
Clock clock) |
HistogramImpl(ReservoirType type)
Creates a new
Histogram with the given reservoir. |
HistogramImpl(ReservoirType type,
int interval,
int numberOfBucket,
Clock clock)
Creates a new
Histogram with the given reservoir. |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCount()
Returns the number of values recorded.
|
Snapshot |
getSnapshot() |
long |
lastUpdateTime() |
void |
update(int value)
Adds a recorded value.
|
void |
update(long value)
Adds a recorded value.
|
public HistogramImpl(ReservoirType type)
Histogram with the given reservoir.type - the reservoir type to create a histogram frompublic HistogramImpl(int interval,
ReservoirType type)
public HistogramImpl(int interval)
public HistogramImpl(ReservoirType type, int interval, int numberOfBucket, Clock clock)
Histogram with the given reservoir.type - the reservoir type to create a histogram frominterval - the interval to create bucket counternumberOfBucket - the number of bucket to create bucket counterclock - the clock the create bucket counterpublic void update(int value)
public void update(long value)
public long getCount()
public Snapshot getSnapshot()
getSnapshot 在接口中 Samplingpublic long lastUpdateTime()
lastUpdateTime 在接口中 MetricCopyright © 2019. All rights reserved.