Class IndicatorResetCountMin4
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.admission.countmin4.IndicatorResetCountMin4
-
-
Constructor Summary
Constructors Constructor Description IndicatorResetCountMin4(Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfrequency(long e)Returns the estimated number of times the element was seen.intgetEventsToCount()intgetPeriod()voidincrement(long e)Increments the popularity of the element.voidreportMiss()Feedback to allow for adaptability.
-
-
-
Constructor Detail
-
IndicatorResetCountMin4
public IndicatorResetCountMin4(Config config)
-
-
Method Detail
-
frequency
public int frequency(long e)
Description copied from interface:FrequencyReturns the estimated number of times the element was seen.
-
increment
public void increment(long e)
Description copied from interface:FrequencyIncrements the popularity of the element.
-
reportMiss
public void reportMiss()
Description copied from interface:FrequencyFeedback to allow for adaptability.- Specified by:
reportMissin interfaceFrequency
-
getEventsToCount
public int getEventsToCount()
-
getPeriod
public int getPeriod()
-
-