Package com.google.cloud.spanner.watcher
Interface SpannerTableChangeWatcher.RowChangeCallback
-
- Enclosing interface:
- SpannerTableChangeWatcher
public static interface SpannerTableChangeWatcher.RowChangeCallbackInterface for receiving asynchronous callbacks when a row has been inserted or updated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrowChange(TableId table, SpannerTableChangeWatcher.Row row, com.google.cloud.Timestamp commitTimestamp)Called once for each detected insert or update of a row.
-
-
-
Method Detail
-
rowChange
void rowChange(TableId table, SpannerTableChangeWatcher.Row row, com.google.cloud.Timestamp commitTimestamp)
Called once for each detected insert or update of a row. Calls are guaranteed to be in order of commit timestamp of the changes.- Parameters:
table- The table where the data was inserted or updated.row- The updated data of the row that was inserted or updated.commitTimestamp- The commit timestamp of the transaction that inserted or updated the row.
-
-