in core/src/main/java/com/spotify/metrics/core/LockFreeExponentiallyDecayingReservoir.java [92:97]
private void addSample(double priority, long value, double itemWeight, boolean bypassIncrement) {
if (values.putIfAbsent(priority, new WeightedSample(value, itemWeight)) == null
&& (bypassIncrement || countUpdater.incrementAndGet(this) > size)) {
values.pollFirstEntry();
}
}