Interface SlidingWindowTrimmer<V>
- All Known Implementing Classes:
AggregatingTrimmer
public interface SlidingWindowTrimmer<V>
The trimmer of an associated sliding window.
-
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.