接口 EvictionContext

所有已知实现类:
DefaultEvictionContext

public interface EvictionContext
Context information that can be used by the eviction policy.
  • 方法概要

    修饰符和类型
    方法
    说明
    Returns the current count of events in the queue up to the reference time based on which count based evictions can be performed.
    Returns the reference time that the eviction policy could use to evict the events.
    Returns the sliding count for count based windows.
    Returns the sliding interval for time based windows.
  • 方法详细资料

    • getReferenceTime

      Long getReferenceTime()
      Returns 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.
      返回:
      the reference time in millis
    • getSlidingCount

      Long getSlidingCount()
      Returns the sliding count for count based windows.
      返回:
      the sliding count
    • getSlidingInterval

      Long getSlidingInterval()
      Returns the sliding interval for time based windows.
      返回:
      the sliding interval
    • getCurrentCount

      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.
      返回:
      the current count