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 int
frequency(long e)
Returns the estimated number of times the element was seen.int
getEventsToCount()
int
getPeriod()
void
increment(long e)
Increments the popularity of the element.void
reportMiss()
Feedback to allow for adaptability.
-
-
-
Constructor Detail
-
IndicatorResetCountMin4
public IndicatorResetCountMin4(Config config)
-
-
Method Detail
-
frequency
public int frequency(long e)
Description copied from interface:Frequency
Returns the estimated number of times the element was seen.
-
increment
public void increment(long e)
Description copied from interface:Frequency
Increments the popularity of the element.
-
reportMiss
public void reportMiss()
Description copied from interface:Frequency
Feedback to allow for adaptability.- Specified by:
reportMiss
in interfaceFrequency
-
getEventsToCount
public int getEventsToCount()
-
getPeriod
public int getPeriod()
-
-