Class AsyncWatermarkCache

java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.cache.AsyncWatermarkCache
All Implemented Interfaces:
WatermarkCache

public class AsyncWatermarkCache extends Object implements 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

invalid reference
PartitionMetadataDao#getUnfinishedMinWatermark()
to refresh the value.