public class DurationEvictionPolicy<T> extends java.lang.Object implements IEvictionPolicy<T>
Modifier and Type | Field and Description |
---|---|
protected IEvictionContext |
evictionContext |
protected java.lang.Long |
referenceTime |
Constructor and Description |
---|
DurationEvictionPolicy(long winLength) |
Modifier and Type | Method and Description |
---|---|
Action |
evict(Event<T> event) |
void |
setContext(IEvictionContext context) |
java.lang.String |
toString() |
void |
track(Event<T> event) |
protected java.lang.Long referenceTime
protected IEvictionContext evictionContext
public void track(Event<T> event)
track
in interface IEvictionPolicy<T>
public void setContext(IEvictionContext context)
setContext
in interface IEvictionPolicy<T>
public java.lang.String toString()
toString
in class java.lang.Object