org.apache.storm.windowing

## Interface EvictionContext

- All Known Implementing Classes:
    DefaultEvictionContext

      public interface EvictionContext

  Context information that can be used by the eviction policy.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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.

- - ### Method Detail

    - #### 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.

      Returns:
        the reference time in millis

    - #### getSlidingCount

          Long getSlidingCount()

      Returns the sliding count for count based windows.

      Returns:
        the sliding count

    - #### getSlidingInterval

          Long getSlidingInterval()

      Returns the sliding interval for time based windows.

      Returns:
        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.

      Returns:
        the current count

Copyright © 2021 The Apache Software Foundation. All rights reserved.