类 WatermarkTimeEvictionPolicy<T>

java.lang.Object
org.apache.pulsar.functions.windowing.evictors.TimeEvictionPolicy<T>
org.apache.pulsar.functions.windowing.evictors.WatermarkTimeEvictionPolicy<T>
所有已实现的接口:
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.
  • 构造器详细资料

    • WatermarkTimeEvictionPolicy

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

      public WatermarkTimeEvictionPolicy(long windowLength, long 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.
      参数:
      windowLength - the window length in milliseconds
      lag - the max event lag in milliseconds
  • 方法详细资料