Interface SlidingWindowTrimmer<V>
public interface SlidingWindowTrimmer<V>
The trimmer of an associated sliding window.
- Author:
- Stepan Vavra
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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).
-
Method Details
-
setTimeReservoir
- Parameters:
reservoir
- The reservoir that uses this trimmer.