public class BucketCounterImpl extends Object implements BucketCounter
| 构造器和说明 |
|---|
BucketCounterImpl(int interval) |
BucketCounterImpl(int interval,
boolean updateTotalCount) |
BucketCounterImpl(int interval,
int numberOfBucket,
Clock clock) |
BucketCounterImpl(int interval,
int numberOfBucket,
Clock clock,
boolean updateTotalCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dec() |
void |
dec(long n) |
Map<Long,Long> |
getBucketCounts() |
Map<Long,Long> |
getBucketCounts(long startTime)
Return the bucket count, keyed by timestamp
|
int |
getBucketInterval() |
long |
getCount() |
void |
inc() |
void |
inc(long n) |
long |
lastUpdateTime() |
void |
update()
update the counter to the given bucket
|
void |
update(long n)
update the counter to the given bucket
|
public BucketCounterImpl(int interval,
boolean updateTotalCount)
public BucketCounterImpl(int interval)
public BucketCounterImpl(int interval,
int numberOfBucket,
Clock clock)
public BucketCounterImpl(int interval,
int numberOfBucket,
Clock clock,
boolean updateTotalCount)
public void update()
update 在接口中 BucketCounterpublic void update(long n)
update 在接口中 BucketCounterpublic Map<Long,Long> getBucketCounts(long startTime)
getBucketCounts 在接口中 BucketCounterpublic Map<Long,Long> getBucketCounts()
getBucketCounts 在接口中 BucketCounterpublic int getBucketInterval()
getBucketInterval 在接口中 BucketCounterpublic long lastUpdateTime()
lastUpdateTime 在接口中 MetricCopyright © 2019. All rights reserved.