Reference documentation and code samples for the Google Cloud Datastream V1 Client class CdcStrategy.
The strategy that the stream uses for CDC replication.
Generated from protobuf message google.cloud.datastream.v1.CdcStrategy
Namespace
Google \ Cloud \ Datastream \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ most_recent_start_position |
CdcStrategy\MostRecentStartPosition
Optional. Start replicating from the most recent position in the source. |
↳ next_available_start_position |
CdcStrategy\NextAvailableStartPosition
Optional. Resume replication from the next available position in the source. |
↳ specific_start_position |
CdcStrategy\SpecificStartPosition
Optional. Start replicating from a specific position in the source. |
getMostRecentStartPosition
Optional. Start replicating from the most recent position in the source.
Returns | |
---|---|
Type | Description |
CdcStrategy\MostRecentStartPosition|null |
hasMostRecentStartPosition
setMostRecentStartPosition
Optional. Start replicating from the most recent position in the source.
Parameter | |
---|---|
Name | Description |
var |
CdcStrategy\MostRecentStartPosition
|
Returns | |
---|---|
Type | Description |
$this |
getNextAvailableStartPosition
Optional. Resume replication from the next available position in the source.
Returns | |
---|---|
Type | Description |
CdcStrategy\NextAvailableStartPosition|null |
hasNextAvailableStartPosition
setNextAvailableStartPosition
Optional. Resume replication from the next available position in the source.
Parameter | |
---|---|
Name | Description |
var |
CdcStrategy\NextAvailableStartPosition
|
Returns | |
---|---|
Type | Description |
$this |
getSpecificStartPosition
Optional. Start replicating from a specific position in the source.
Returns | |
---|---|
Type | Description |
CdcStrategy\SpecificStartPosition|null |
hasSpecificStartPosition
setSpecificStartPosition
Optional. Start replicating from a specific position in the source.
Parameter | |
---|---|
Name | Description |
var |
CdcStrategy\SpecificStartPosition
|
Returns | |
---|---|
Type | Description |
$this |
getStartPosition
Returns | |
---|---|
Type | Description |
string |