public static interface ReplicationRequest.PhysicalReplicationRequestBuilder extends ReplicationRequest.PhysicalReplicationStep1, ReplicationRequest.PhysicalReplicationStep2, ReplicationRequest.WithSlotName, ReplicationRequest.WithStartPosition, ReplicationRequest.WithStatusInterval
Modifier and Type | Method and Description |
---|---|
ReplicationRequest |
build()
Returns the physical
ReplicationRequest . |
ReplicationRequest.PhysicalReplicationRequestBuilder |
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.PhysicalReplicationRequestBuilder |
startPosition(LogSequenceNumber lsn)
Specify start position from which backend will start stream changes.
|
ReplicationRequest.PhysicalReplicationRequestBuilder |
statusInterval(Duration interval)
Specifies the number of time between status packets sent back to the server.
|
ReplicationRequest.PhysicalReplicationRequestBuilder slotName(String slotName)
slotName
in interface ReplicationRequest.PhysicalReplicationStep1
slotName
in interface ReplicationRequest.WithSlotName
slotName
- not null replication slot already exists on serverthis
builderReplicationRequest.PhysicalReplicationRequestBuilder startPosition(LogSequenceNumber lsn)
startPosition
in interface ReplicationRequest.PhysicalReplicationStep2
startPosition
in interface ReplicationRequest.WithStartPosition
lsn
- not null position from which need start replicate changesthis
builderReplicationRequest.PhysicalReplicationRequestBuilder statusInterval(Duration interval)
statusInterval
in interface ReplicationRequest.WithStatusInterval
interval
- positive timethis
builder.ReplicationRequest build()
ReplicationRequest
.ReplicationRequest
.Copyright © 2020. All rights reserved.