public interface CommitTimestampRepository
SpannerTableChangeWatcher to a
persistent repository.| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.Timestamp |
get(TableId table)
Returns the last seen commit timestamp for the given table.
|
default com.google.cloud.Timestamp |
get(TableId table,
com.google.cloud.spanner.Value shardValue)
Returns the last seen commit timestamp for the given table and shard value.
|
void |
set(TableId table,
com.google.cloud.Timestamp commitTimestamp)
Sets the last seen commit timestamp for the given table.
|
default void |
set(TableId table,
com.google.cloud.spanner.Value shardValue,
com.google.cloud.Timestamp timestamp)
Sets the last seen commit timestamp for the given table and shard value.
|
com.google.cloud.Timestamp get(TableId table)
default com.google.cloud.Timestamp get(TableId table, @Nullable com.google.cloud.spanner.Value shardValue) throws UnsupportedOperationException
UnsupportedOperationException.UnsupportedOperationExceptionvoid set(TableId table, com.google.cloud.Timestamp commitTimestamp)
default void set(TableId table, @Nullable com.google.cloud.spanner.Value shardValue, com.google.cloud.Timestamp timestamp) throws UnsupportedOperationException
UnsupportedOperationException.UnsupportedOperationExceptionCopyright © 2022 Google LLC. All rights reserved.