Interface TimestampsAndWatermarks.WatermarkUpdateListener
- All Known Implementing Classes:
SourceOperator
- Enclosing interface:
- TimestampsAndWatermarks<T>
@Internal
public static interface TimestampsAndWatermarks.WatermarkUpdateListener
Lets the owner/creator of the output know about latest emitted watermark.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsplitFinished(String splitId) Notifies that split has finished.voidupdateCurrentEffectiveWatermark(long watermark) Update the effective watermark.voidupdateCurrentSplitWatermark(String splitId, long watermark) Notifies about changes to per split watermarks.voidupdateIdle(boolean isIdle) It should be called once the idle is changed.
-
Method Details
-
updateIdle
void updateIdle(boolean isIdle) It should be called once the idle is changed. -
updateCurrentEffectiveWatermark
void updateCurrentEffectiveWatermark(long watermark) Update the effective watermark. If an output becomes idle, please call {@link this#updateIdle} instead of update the watermark toLong.MAX_VALUE. Because the output needs to distinguish between idle and real watermark. -
updateCurrentSplitWatermark
Notifies about changes to per split watermarks. -
splitFinished
Notifies that split has finished.
-