Package com.google.cloud.spanner.watcher
-
Interface Summary Interface Description CommitTimestampRepository Interface for storing the last seen commit timestamp by aSpannerTableChangeWatcherto a persistent repository.ShardProvider Interface for providing a shard id for Spanner Table Change watchers.SpannerDatabaseChangeWatcher Interface for capturing changes to a set of tables in a Spanner database.SpannerDatabaseTailer.Builder Builder for aSpannerDatabaseTailer.SpannerDatabaseTailer.TableExcluder Interface for excluding specific tables from aSpannerDatabaseTailer.SpannerDatabaseTailer.TableSelecter Interface for selecting the tables that should be monitored by aSpannerDatabaseTailer.SpannerTableChangeWatcher Interface for capturing changes to a single Spanner table.SpannerTableChangeWatcher.Row Row is passed in to the change callback and allows access to the most recent data.SpannerTableChangeWatcher.RowChangeCallback Interface for receiving asynchronous callbacks when a row has been inserted or updated. -
Class Summary Class Description FixedShardProvider Implementation ofShardProviderthat returns a fixed shard id.SpannerCommitTimestampRepository CommitTimestampRepositorythat stores the last seen commit timestamp for a table in a Cloud Spanner database table.SpannerCommitTimestampRepository.Builder Builder for aSpannerCommitTimestampRepository.SpannerDatabaseTailer Implementation of theSpannerDatabaseChangeWatcherinterface that continuously polls a set of tables for changes based on commit timestamp columns in the tables.SpannerTableTailer Implementation of theSpannerTableChangeWatcherinterface that continuously polls a table for changes based on a commit timestamp column in the table.SpannerTableTailer.Builder Builder for aSpannerTableTailer.SpannerUtils Utils for getting commonly needed schema information from a Spanner database.SpannerUtils.LogRecordBuilder TableId Unique id of a Cloud Spanner table.TimebasedShardProvider Implementation ofShardProviderthat generates aShardIdbased on the current system time of Cloud Spanner.TimebasedShardProvider.TimebasedShardId A generated timebased shard id that has been fetched from Cloud Spanner. -
Enum Summary Enum Description TimebasedShardProvider.Interval