| 限定符和类型 | 方法和说明 |
|---|---|
Map<Long,Long> |
getBucketCounts()
Return the bucket count, keyed by timestamp
|
Map<Long,Long> |
getBucketCounts(long startTime)
Return the bucket count, keyed by timestamp, since (including) the startTime.
|
int |
getBucketInterval()
Get the interval of the bucket
|
void |
update()
update the counter to the given bucket
|
void |
update(long n)
update the counter to the given bucket
|
lastUpdateTimevoid update()
void update(long n)
Map<Long,Long> getBucketCounts()
Map<Long,Long> getBucketCounts(long startTime)
startTime - 查询起始时间, 单位是毫秒int getBucketInterval()
Copyright © 2019. All rights reserved.