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 master does not remove WAL segments until they have been received by all standbys, and that the master 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.LogicalReplicationStep1
slotName
in interface ReplicationRequest.WithSlotName
slotName
- not null replication slot already exists on serverthis
builderReplicationRequest.LogicalReplicationRequestBuilder startPosition(LogSequenceNumber lsn)
startPosition
in interface ReplicationRequest.LogicalReplicationStep2
startPosition
in interface ReplicationRequest.WithStartPosition
lsn
- not null position from which need start replicate changesthis
builderReplicationRequest.LogicalReplicationRequestBuilder statusInterval(Duration interval)
statusInterval
in interface ReplicationRequest.WithStatusInterval
interval
- positive timethis
builder.ReplicationRequest.LogicalReplicationRequestBuilder slotOption(String option, Object value)
slotOption
in interface ReplicationRequest.WithSlotOption
option
- slot option namevalue
- option valueReplicationRequest build()
ReplicationRequest
.ReplicationRequest
.Copyright © 2021. All rights reserved.