public static class SpannerTableChangeSetPoller.Builder extends Object
SpannerTableChangeSetPoller.| Modifier and Type | Method and Description |
|---|---|
SpannerTableChangeSetPoller |
build()
Creates the
SpannerTableChangeSetPoller. |
SpannerTableChangeSetPoller.Builder |
setChangeSetTableIdColumn(String column)
Sets the name of the column that contains the change set id in the change set table (the
table registering all transactions that should be watched).
|
SpannerTableChangeSetPoller.Builder |
setCommitTimestampRepository(CommitTimestampRepository repository)
Sets the
CommitTimestampRepository to use for the SpannerTableTailer that is
watching the change set table. |
SpannerTableChangeSetPoller.Builder |
setDataTableChangeSetIdColumn(String column)
Sets the name of the column that contains the change set id in the data table (the table that
is being watched for changes).
|
SpannerTableChangeSetPoller.Builder |
setExecutor(ScheduledExecutorService executor)
Sets the executor to use for polling for changes.
|
SpannerTableChangeSetPoller.Builder |
setPollInterval(org.threeten.bp.Duration interval)
Sets the poll interval for the table.
|
public SpannerTableChangeSetPoller.Builder setDataTableChangeSetIdColumn(String column)
public SpannerTableChangeSetPoller.Builder setChangeSetTableIdColumn(String column)
public SpannerTableChangeSetPoller.Builder setCommitTimestampRepository(CommitTimestampRepository repository)
CommitTimestampRepository to use for the SpannerTableTailer that is
watching the change set table.
If none is set, it will default to a SpannerCommitTimestampRepository which stores
the last seen commit timestamp in a table named LAST_SEEN_COMMIT_TIMESTAMPS. The table will
be created if it does not yet exist.
public SpannerTableChangeSetPoller.Builder setPollInterval(org.threeten.bp.Duration interval)
public SpannerTableChangeSetPoller.Builder setExecutor(ScheduledExecutorService executor)
public SpannerTableChangeSetPoller build()
SpannerTableChangeSetPoller.Copyright © 2022 Google LLC. All rights reserved.