public class DefaultEvictionContext extends Object implements EvictionContext
| Constructor and Description |
|---|
DefaultEvictionContext(Long referenceTime) |
DefaultEvictionContext(Long referenceTime,
Long currentCount) |
DefaultEvictionContext(Long referenceTime,
Long currentCount,
Long slidingCount) |
DefaultEvictionContext(Long referenceTime,
Long currentCount,
Long slidingCount,
Long slidingInterval) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Long |
getReferenceTime()
Returns the reference time that the eviction policy could use to evict the events.
|
Long |
getSlidingCount()
Returns the sliding count for count based windows.
|
Long |
getSlidingInterval()
Returns the sliding interval for time based windows.
|
public DefaultEvictionContext(Long referenceTime)
public DefaultEvictionContext(Long referenceTime, Long currentCount, Long slidingCount)
public Long getReferenceTime()
EvictionContextReturns the reference time that the eviction policy could use to evict the events. In the case of event time processing, this would be the watermark time.
getReferenceTime in interface EvictionContextpublic Long getCurrentCount()
EvictionContextReturns the current count of events in the queue up to the reference time based on which count based evictions can be performed.
getCurrentCount in interface EvictionContextpublic Long getSlidingCount()
EvictionContextReturns the sliding count for count based windows.
getSlidingCount in interface EvictionContextpublic Long getSlidingInterval()
EvictionContextReturns the sliding interval for time based windows.
getSlidingInterval in interface EvictionContextCopyright © 2021 The Apache Software Foundation. All rights reserved.