public interface SlidingWindowTrimmer<V>
Modifier and Type | Method and Description |
---|---|
void |
setTimeReservoir(TimeReservoir<V> reservoir) |
void |
trim(java.util.concurrent.ConcurrentNavigableMap<java.lang.Long,V> map,
long key)
Trim the measurements provided as the map from the head up to the key (not inclusive).
|
void trim(java.util.concurrent.ConcurrentNavigableMap<java.lang.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.