Class SamplingAgeManager

    • Constructor Detail

      • SamplingAgeManager

        public SamplingAgeManager()
    • Method Detail

      • markValuesStored

        public abstract void markValuesStored()
        Should be called any time values are stored in order to reset any bookkeeping. *
      • markNoValuesAndCheckAge

        public abstract boolean markNoValuesAndCheckAge()
        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.
      • checkMinAge

        public abstract long checkMinAge​(@Nullable
                                         java.util.List<HistoricalTagValue> values)
        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.
      • getAndClearPending

        @Nullable
        public java.util.List<HistoricalTagValue> getAndClearPending()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object