Class DefaultEvictionContext

    • Constructor Summary

      Constructors 
      Constructor 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)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultEvictionContext

        public DefaultEvictionContext​(java.lang.Long referenceTime)
      • DefaultEvictionContext

        public DefaultEvictionContext​(java.lang.Long referenceTime,
                                      java.lang.Long currentCount)
      • DefaultEvictionContext

        public DefaultEvictionContext​(java.lang.Long referenceTime,
                                      java.lang.Long currentCount,
                                      java.lang.Long slidingCount)
      • DefaultEvictionContext

        public DefaultEvictionContext​(java.lang.Long referenceTime,
                                      java.lang.Long currentCount,
                                      java.lang.Long slidingCount,
                                      java.lang.Long slidingInterval)
    • Method Detail

      • getReferenceTime

        public java.lang.Long getReferenceTime()
        Description copied from interface: EvictionContext
        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.
        Specified by:
        getReferenceTime in interface EvictionContext
        Returns:
        the reference time in millis
      • getCurrentCount

        public java.lang.Long getCurrentCount()
        Description copied from interface: EvictionContext
        Returns the current count of events in the queue up to the reference time based on which count based evictions can be performed.
        Specified by:
        getCurrentCount in interface EvictionContext
        Returns:
        the current count
      • getSlidingCount

        public java.lang.Long getSlidingCount()
        Description copied from interface: EvictionContext
        Returns the sliding count for count based windows.
        Specified by:
        getSlidingCount in interface EvictionContext
        Returns:
        the sliding count
      • getSlidingInterval

        public java.lang.Long getSlidingInterval()
        Description copied from interface: EvictionContext
        Returns the sliding interval for time based windows.
        Specified by:
        getSlidingInterval in interface EvictionContext
        Returns:
        the sliding interval