public interface SpannerDatabaseChangeWatcher
extends com.google.api.core.ApiService
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(SpannerTableChangeWatcher.RowChangeCallback callback)
Adds a
SpannerTableChangeWatcher.RowChangeCallback for this SpannerDatabaseChangeWatcher. |
com.google.cloud.spanner.DatabaseId |
getDatabaseId()
Returns the id of the database that is being monitored for changes.
|
Collection<TableId> |
getTables()
Returns the ids of the tables that are monitored by this watcher.
|
com.google.cloud.spanner.DatabaseId getDatabaseId()
Collection<TableId> getTables()
SpannerDatabaseChangeWatcher to make a round-trip to the database to determine the
actual tables that are being monitored.void addCallback(SpannerTableChangeWatcher.RowChangeCallback callback)
SpannerTableChangeWatcher.RowChangeCallback for this SpannerDatabaseChangeWatcher. Callbacks may
only be added when the ApiService.state() of this SpannerDatabaseChangeWatcher is ApiService.State.NEW. Callbacks for one table will always be in order of commit timestamp, and only one
callback will be active at any time for a table. Callbacks for different tables may be called
in parallel, and there is no guarantee to the ordering of callbacks over multiple tables.Copyright © 2022 Google LLC. All rights reserved.