public class CountEvictionPolicy<T> extends java.lang.Object implements IEvictionPolicy<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.atomic.AtomicLong |
currentCount |
protected long |
threshold |
| Constructor and Description |
|---|
CountEvictionPolicy(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) |
protected final long threshold
protected final java.util.concurrent.atomic.AtomicLong currentCount
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