public interface BucketCounter extends Metric
| Modifier and Type | Method and Description |
|---|---|
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 - the start timeint getBucketInterval()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.