Class AsyncWatermarkCache
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.cache.AsyncWatermarkCache
- All Implemented Interfaces:
WatermarkCache
Asynchronously compute the earliest partition watermark and stores it in memory. The value will
be recomputed periodically, as configured by the refresh rate.
On every period, we will call
to
refresh the value.invalid reference
PartitionMetadataDao#getUnfinishedMinWatermark()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.TimestampFetches the earliest partition watermark from the partition metadata table that is not in aPartitionMetadata.State.FINISHEDstate.
-
Constructor Details
-
AsyncWatermarkCache
-
-
Method Details
-
getUnfinishedMinWatermark
Description copied from interface:WatermarkCacheFetches the earliest partition watermark from the partition metadata table that is not in aPartitionMetadata.State.FINISHEDstate.- Specified by:
getUnfinishedMinWatermarkin interfaceWatermarkCache- Returns:
- the earliest partition watermark which is not in a
PartitionMetadata.State.FINISHEDstate.
-