Add counting, resetting hdr histogram for supporting the size method.
Ole Langbehn
Branch: neurolabs/hdrhistogram-metrics-reservoir:master
Branch: marshallpierce/hdrhistogram-metrics-reservoir:master
Declined
Declined pull request
Closed by: Marshall Pierce·2020-10-20
The resetOnSnapshot behavior of the hdr histogram reservoir led to a snapshot reset when calling the readonly size method. This change makes the existing resetting histogram throw an UnsupportedOperationException on calling the size method, and provides an alternative, supporting the size method by using an atomic counter.