| 构造器和说明 |
|---|
BucketReservoir(int interval,
int numberOfBucket,
Clock clock,
BucketCounter count)
Create a
BucketReservoir instance with given count and value counter |
public BucketReservoir(int interval,
int numberOfBucket,
Clock clock,
BucketCounter count)
BucketReservoir instance with given count and value counterinterval - the bucket intervalclock - the clock implementationnumberOfBucket - the number of bucketscount - the total count, which will be update outsidepublic Snapshot getSnapshot()
getSnapshot 在接口中 ReservoirBucketSnapshot instanceCopyright © 2019. All rights reserved.