public interface SlidingWindowTrimmer<V>
Modifier and Type | Method and Description |
---|---|
void |
setTimeReservoir(TimeReservoir<V> reservoir) |
void |
trim(ConcurrentNavigableMap<Long,V> map,
long key)
Trim the measurements provided as the map from the head up to the key (not inclusive).
|
void trim(ConcurrentNavigableMap<Long,V> map, long key)
map
- The map to trim.key
- The key to which trim the map.void setTimeReservoir(TimeReservoir<V> reservoir)
reservoir
- The reservoir that uses this trimmer.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.