Class JobManagerWatermarkTracker
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.util.WatermarkTracker
-
- org.apache.flink.streaming.connectors.kinesis.util.JobManagerWatermarkTracker
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
@PublicEvolving public class JobManagerWatermarkTracker extends WatermarkTracker
AWatermarkTrackerthat shares state throughGlobalAggregateManager.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classJobManagerWatermarkTracker.WatermarkResultWatermark aggregation result.protected static classJobManagerWatermarkTracker.WatermarkUpdateWatermark aggregation input.-
Nested classes/interfaces inherited from class org.apache.flink.streaming.connectors.kinesis.util.WatermarkTracker
WatermarkTracker.WatermarkState
-
-
Field Summary
-
Fields inherited from class org.apache.flink.streaming.connectors.kinesis.util.WatermarkTracker
DEFAULT_UPDATE_TIMEOUT_MILLIS
-
-
Constructor Summary
Constructors Constructor Description JobManagerWatermarkTracker(String aggregateName)JobManagerWatermarkTracker(String aggregateName, long logAccumulatorIntervalMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetUpdateTimeoutCount()voidopen(org.apache.flink.api.common.functions.RuntimeContext context)longupdateWatermark(long localWatermark)Set the current watermark of the owning subtask and return the global low watermark based on the current state snapshot.-
Methods inherited from class org.apache.flink.streaming.connectors.kinesis.util.WatermarkTracker
close, getCurrentTime, getSubtaskId, getUpdateTimeoutMillis, setUpdateTimeoutMillis
-
-
-
-
Method Detail
-
updateWatermark
public long updateWatermark(long localWatermark)
Description copied from class:WatermarkTrackerSet the current watermark of the owning subtask and return the global low watermark based on the current state snapshot. Periodically called by the enclosing consumer instance, which is responsible for any timer management etc.- Specified by:
updateWatermarkin classWatermarkTracker- Returns:
-
open
public void open(org.apache.flink.api.common.functions.RuntimeContext context)
- Overrides:
openin classWatermarkTracker
-
getUpdateTimeoutCount
public long getUpdateTimeoutCount()
- Specified by:
getUpdateTimeoutCountin classWatermarkTracker
-
-