public interface ActiveEvictionPolicy<DATA> extends EvictionPolicy<DATA>
EvictionPolicy it provides a method which gets called
to notify on fake elements.
In case an eviction policy implements this interface instead of the
EvictionPolicy interface, not only the real but also fake data points
will cause a notification of the eviction.
Fake data points are mostly used in windowing based on time to trigger and
evict even if no element arrives at all during a windows duration.| Modifier and Type | Method and Description |
|---|---|
int |
notifyEvictionWithFakeElement(Object datapoint,
int bufferSize)
Proves if and how many elements should be deleted from the element
buffer.
|
notifyEvictionint notifyEvictionWithFakeElement(Object datapoint, int bufferSize)
datapoint - the current fake data pointbufferSize - the current size of the buffer (only real elements are
counted)Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.