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.Timestamp
Fetches the earliest partition watermark from the partition metadata table that is not in aPartitionMetadata.State.FINISHED
state.
-
Constructor Details
-
AsyncWatermarkCache
-
-
Method Details
-
getUnfinishedMinWatermark
Description copied from interface:WatermarkCache
Fetches the earliest partition watermark from the partition metadata table that is not in aPartitionMetadata.State.FINISHED
state.- Specified by:
getUnfinishedMinWatermark
in interfaceWatermarkCache
- Returns:
- the earliest partition watermark which is not in a
PartitionMetadata.State.FINISHED
state.
-