public abstract class CustomEvictionAttributes
extends java.lang.Object
EvictionCriteria
and evictor
start time and frequency, if any.Modifier | Constructor and Description |
---|---|
protected |
CustomEvictionAttributes(EvictionCriteria<?,?> criteria,
long startTime,
long interval,
boolean evictIncoming) |
Modifier and Type | Method and Description |
---|---|
<K,V> EvictionCriteria<K,V> |
getCriteria()
Get the
EvictionCriteria for this custom eviction. |
long |
getEvictorInterval()
The intervals at which the periodic evictor task is fired and
EvictionCriteria evaluated to evict entries. |
long |
getEvictorStartTime()
The absolute start time in milliseconds (as returned by
System.currentTimeMillis() ) when the evictor will be first fired. |
boolean |
isEvictIncoming()
If this returns true, then the criteria should always be applied to
incoming entries and never as a periodic task.
|
protected CustomEvictionAttributes(EvictionCriteria<?,?> criteria, long startTime, long interval, boolean evictIncoming)
public <K,V> EvictionCriteria<K,V> getCriteria()
EvictionCriteria
for this custom eviction. The criteria
will be applied to the region entries either periodically as per
getEvictorStartTime()
and getEvictorInterval()
, or on
incoming puts if isEvictIncoming()
is true.public final long getEvictorStartTime()
System.currentTimeMillis()
) when the evictor will be first fired.
Thereafter the evictor will be fired periodically every
getEvictorInterval()
milliseconds.public final long getEvictorInterval()
EvictionCriteria
evaluated to evict entries.public final boolean isEvictIncoming()