Class WatermarkTimeEvictionPolicy<T>

java.lang.Object
org.apache.storm.windowing.TimeEvictionPolicy<T>
org.apache.storm.windowing.WatermarkTimeEvictionPolicy<T>
All Implemented Interfaces:
EvictionPolicy<T,EvictionContext>

public class WatermarkTimeEvictionPolicy<T> extends TimeEvictionPolicy<T>
An eviction policy that evicts events based on time duration taking watermark time and event lag into account.
  • Constructor Details

    • WatermarkTimeEvictionPolicy

      public WatermarkTimeEvictionPolicy(int windowLength)
      Constructs a WatermarkTimeEvictionPolicy that evicts events older than the given window length in millis.
      Parameters:
      windowLength - the window length in milliseconds
    • WatermarkTimeEvictionPolicy

      public WatermarkTimeEvictionPolicy(int windowLength, int lag)
      Constructs a WatermarkTimeEvictionPolicy that evicts events older than the given window length in millis. The lag parameter can be used in the case of event based ts to break the queue scan early.
      Parameters:
      windowLength - the window length in milliseconds
      lag - the max event lag in milliseconds
  • Method Details