public class WatermarkCountEvictionPolicy<T> extends CountEvictionPolicy<T>
currentCount, threshold
Constructor and Description |
---|
WatermarkCountEvictionPolicy(long count) |
Modifier and Type | Method and Description |
---|---|
Action |
evict(Event<T> event) |
void |
setContext(IEvictionContext context) |
java.lang.String |
toString() |
void |
track(Event<T> event) |
public Action evict(Event<T> event)
evict
in interface IEvictionPolicy<T>
evict
in class CountEvictionPolicy<T>
public void track(Event<T> event)
track
in interface IEvictionPolicy<T>
track
in class CountEvictionPolicy<T>
public void setContext(IEvictionContext context)
setContext
in interface IEvictionPolicy<T>
setContext
in class CountEvictionPolicy<T>
public java.lang.String toString()
toString
in class CountEvictionPolicy<T>