Class BoundedOutOfOrdernessWatermarks<T>

  • All Implemented Interfaces:
    WatermarkGenerator<T>
    Direct Known Subclasses:
    AscendingTimestampsWatermarks

    @Public
    public class BoundedOutOfOrdernessWatermarks<T>
    extends Object
    implements WatermarkGenerator<T>
    A WatermarkGenerator for situations where records are out of order, but you can place an upper bound on how far the events are out of order. An out-of-order bound B means that once an event with timestamp T was encountered, no events older than T - B will follow any more.

    The watermarks are generated periodically. The delay introduced by this watermark strategy is the periodic interval length, plus the out-of-orderness bound.

    • Constructor Detail

      • BoundedOutOfOrdernessWatermarks

        public BoundedOutOfOrdernessWatermarks​(java.time.Duration maxOutOfOrderness)
        Creates a new watermark generator with the given out-of-orderness bound.
        Parameters:
        maxOutOfOrderness - The bound for the out-of-orderness of the event timestamps.