public class DefaultEvictionContext extends java.lang.Object implements EvictionContext
Constructor and Description |
---|
DefaultEvictionContext(java.lang.Long referenceTime) |
DefaultEvictionContext(java.lang.Long referenceTime,
java.lang.Long currentCount) |
DefaultEvictionContext(java.lang.Long referenceTime,
java.lang.Long currentCount,
java.lang.Long slidingCount) |
DefaultEvictionContext(java.lang.Long referenceTime,
java.lang.Long currentCount,
java.lang.Long slidingCount,
java.lang.Long slidingInterval) |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCurrentCount()
Returns the current count of events in the queue up to the reference time based on which count based evictions can be performed.
|
java.lang.Long |
getReferenceTime()
Returns the reference time that the eviction policy could use to evict the events.
|
java.lang.Long |
getSlidingCount()
Returns the sliding count for count based windows
|
java.lang.Long |
getSlidingInterval()
Returns the sliding interval for time based windows
|
public DefaultEvictionContext(java.lang.Long referenceTime)
public DefaultEvictionContext(java.lang.Long referenceTime, java.lang.Long currentCount)
public DefaultEvictionContext(java.lang.Long referenceTime, java.lang.Long currentCount, java.lang.Long slidingCount)
public DefaultEvictionContext(java.lang.Long referenceTime, java.lang.Long currentCount, java.lang.Long slidingCount, java.lang.Long slidingInterval)
public java.lang.Long getReferenceTime()
EvictionContext
getReferenceTime
in interface EvictionContext
public java.lang.Long getCurrentCount()
EvictionContext
getCurrentCount
in interface EvictionContext
public java.lang.Long getSlidingCount()
EvictionContext
getSlidingCount
in interface EvictionContext
public java.lang.Long getSlidingInterval()
EvictionContext
getSlidingInterval
in interface EvictionContext