Class SamplingAgeManager.TimeBasedAgeManager

    • Constructor Detail

      • TimeBasedAgeManager

        public TimeBasedAgeManager​(long maxMS,
                                   long minMS)
    • Method Detail

      • markNoValuesAndCheckAge

        public boolean markNoValuesAndCheckAge()
        Description copied from class: SamplingAgeManager
        Returns whether values should be stored due to max age. The caller should then call markValuesStored() after to let it know that values where stored.
        Specified by:
        markNoValuesAndCheckAge in class SamplingAgeManager
      • checkMinAge

        public long checkMinAge​(java.util.List<HistoricalTagValue> values)
        Description copied from class: SamplingAgeManager
        Evaluates the min age setting, holding the values as pending and returning a long indicting the nanoseconds until expiration, if applicable. If the return is <=0, the values can be stored.
        Specified by:
        checkMinAge in class SamplingAgeManager
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object