Interface SlidingWindowTrimmer<V>

  • All Known Implementing Classes:
    AggregatingTrimmer

    public interface SlidingWindowTrimmer<V>
    The trimmer of an associated sliding window.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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).
    • Method Detail

      • trim

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