Interface WatermarkIdlePolicy

    • Method Detail

      • getIdleWatermark

        long getIdleWatermark()
        Returns watermark for idle source.
        Returns:
        the watermark.
      • update

        default void update​(StreamElement element)
        Updates policy state when a new element is received from streaming source.
        Parameters:
        element - a stream element.
      • idle

        default void idle​(long currentWatermark)
        Signals that a source is idle.
        Parameters:
        currentWatermark - the most recent watermark estimated by watermark estimator WatermarkEstimator.