Interface TimestampsAndWatermarks.WatermarkUpdateListener
-
- All Known Implementing Classes:
SourceOperator
- Enclosing interface:
- TimestampsAndWatermarks<T>
@Internal public static interface TimestampsAndWatermarks.WatermarkUpdateListenerLets the owner/creator of the output know about latest emitted watermark.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsplitFinished(String splitId)Notifies that split has finished.voidupdateCurrentEffectiveWatermark(long watermark)Update the effective watermark.voidupdateCurrentSplitIdle(String splitId, boolean idle)Notifies about changes to per split idleness.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 Detail
-
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
void updateCurrentSplitWatermark(String splitId, long watermark)
Notifies about changes to per split watermarks.
-
updateCurrentSplitIdle
void updateCurrentSplitIdle(String splitId, boolean idle)
Notifies about changes to per split idleness.
-
splitFinished
void splitFinished(String splitId)
Notifies that split has finished.
-
-