Package com.google.cloud.spanner.watcher
-
Interface Summary Interface Description CommitTimestampRepository Interface for storing the last seen commit timestamp by aSpannerTableChangeWatcherto a persistent repository.DatabaseClientWithChangeSets.AsyncRunnerWithChangeSet AsyncRunnerthat automatically creates a change set.DatabaseClientWithChangeSets.AsyncTransactionManagerWithChangeSet AsyncTransactionManagerthat automatically creates a change set.DatabaseClientWithChangeSets.ChangeSetIdGenerator Interface for generating unique id's for change sets.DatabaseClientWithChangeSets.ChangeSetIdSupplier Supplier of change set id's.DatabaseClientWithChangeSets.TransactionManagerWithChangeSet TransactionManagerthat automatically creates a change set.DatabaseClientWithChangeSets.TransactionRunnerWithChangeSet TransactionRunnerthat automatically creates a change set.ShardProvider Interface for providing a shard id for Spanner Table Change watchers.SpannerDatabaseChangeSetPoller.Builder Builder for aSpannerDatabaseChangeSetPoller.SpannerDatabaseChangeSetPoller.Builder.TableExcluder Interface for excluding specific tables from aSpannerDatabaseChangeSetPoller.SpannerDatabaseChangeSetPoller.Builder.TableSelecter Interface for selecting the tables that should be monitored by aSpannerDatabaseChangeSetPoller.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 DatabaseClientWithChangeSets A wrapper around aDatabaseClientthat automatically generates change set id's and adds a mutation for a change set for each read/write transaction.FixedShardProvider Implementation ofShardProviderthat returns a fixed shard id.NotNullShardProvider AShardProviderthat will add aWHERE ShardId IS NOT NULLclause to the filter of a polling operation.SpannerCommitTimestampRepository CommitTimestampRepositorythat stores the last seen commit timestamp for a table in a Cloud Spanner database table.SpannerCommitTimestampRepository.Builder Builder for aSpannerCommitTimestampRepository.SpannerDatabaseChangeSetPoller Implementation of theSpannerDatabaseChangeWatcherinterface that continuously polls a change set table for new rows, and then polls the actual data tables for any changes that was part of the last seen change set.SpannerDatabaseTailer Implementation of theSpannerDatabaseChangeWatcherinterface that continuously polls a set of tables for changes based on commit timestamp columns in the tables.SpannerTableChangeSetPoller Implementation of theSpannerTableChangeWatcherinterface that continuously polls a change set table for new rows, and then polls an actual data table for any changes that was part of the last seen change set.SpannerTableChangeSetPoller.Builder Builder for aSpannerTableChangeSetPoller.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