public static interface ReplicationRequest.LogicalReplicationRequestBuilder extends ReplicationRequest.LogicalReplicationStep1, ReplicationRequest.LogicalReplicationStep2, ReplicationRequest.WithSlotName, ReplicationRequest.WithStartPosition, ReplicationRequest.WithStatusInterval, ReplicationRequest.WithSlotOption
| Modifier and Type | Method and Description |
|---|---|
ReplicationRequest |
build()
Returns the logical
ReplicationRequest. |
ReplicationRequest.LogicalReplicationRequestBuilder |
slotName(String slotName)
Replication slots provide an automated way to ensure that the primary does not remove WAL segments until they have been received by all standbys, and that the primary does not remove rows
which could cause a recovery conflict even when the standby is disconnected.
|
ReplicationRequest.LogicalReplicationRequestBuilder |
slotOption(String option,
Object value)
Configure slot option.
|
ReplicationRequest.LogicalReplicationRequestBuilder |
startPosition(LogSequenceNumber lsn)
Specify start position from which backend will start stream changes.
|
ReplicationRequest.LogicalReplicationRequestBuilder |
statusInterval(Duration interval)
Specifies the number of time between status packets sent back to the server.
|
ReplicationRequest.LogicalReplicationRequestBuilder slotName(String slotName)
slotName in interface ReplicationRequest.LogicalReplicationStep1slotName in interface ReplicationRequest.WithSlotNameslotName - not null replication slot already exists on serverthis builderReplicationRequest.LogicalReplicationRequestBuilder startPosition(LogSequenceNumber lsn)
startPosition in interface ReplicationRequest.LogicalReplicationStep2startPosition in interface ReplicationRequest.WithStartPositionlsn - not null position from which need start replicate changesthis builderReplicationRequest.LogicalReplicationRequestBuilder statusInterval(Duration interval)
statusInterval in interface ReplicationRequest.WithStatusIntervalinterval - positive timethis builder.ReplicationRequest.LogicalReplicationRequestBuilder slotOption(String option, Object value)
slotOption in interface ReplicationRequest.WithSlotOptionoption - slot option namevalue - option valueReplicationRequest build()
ReplicationRequest.ReplicationRequest.Copyright © 2023. All rights reserved.