Interface SlidingWindowTrimmer<V>


public interface SlidingWindowTrimmer<V>
The trimmer of an associated sliding window.
Author:
Stepan Vavra
  • Method Details

    • 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.