Interface SlidingWindowTrimmer<V>
-
public interface SlidingWindowTrimmer<V>The trimmer of an associated sliding window.- Author:
- Stepan Vavra
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetTimeReservoir(TimeReservoir<V> reservoir)voidtrim(ConcurrentNavigableMap<Long,V> map, long key)Trim the measurements provided as the map from the head up to the key (not inclusive).
-
-
-
Method Detail
-
trim
void trim(ConcurrentNavigableMap<Long,V> map, long key)
Trim the measurements provided as the map from the head up to the key (not inclusive).- Parameters:
map- The map to trim.key- The key to which trim the map.
-
setTimeReservoir
void setTimeReservoir(TimeReservoir<V> reservoir)
- Parameters:
reservoir- The reservoir that uses this trimmer.
-
-