Interface ReplicationRequest.PhysicalReplicationRequestBuilder
- All Superinterfaces:
 ReplicationRequest.PhysicalReplicationStep1, ReplicationRequest.PhysicalReplicationStep2, ReplicationRequest.WithSlotName, ReplicationRequest.WithStartPosition, ReplicationRequest.WithStatusInterval
- Enclosing class:
 ReplicationRequest
public static interface ReplicationRequest.PhysicalReplicationRequestBuilder
extends ReplicationRequest.PhysicalReplicationStep1, ReplicationRequest.PhysicalReplicationStep2, ReplicationRequest.WithSlotName, ReplicationRequest.WithStartPosition, ReplicationRequest.WithStatusInterval
Fluent builder interface to configure a physical replication stream.
- 
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the physicalReplicationRequest.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.Specify start position from which backend will start stream changes.statusInterval(Duration interval) Specifies the number of time between status packets sent back to the server. 
- 
Method Details
- 
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.- Specified by:
 slotNamein interfaceReplicationRequest.PhysicalReplicationStep1- Specified by:
 slotNamein interfaceReplicationRequest.WithSlotName- Parameters:
 slotName- not null replication slot already exists on server- Returns:
 thisbuilder
 - 
startPosition
Specify start position from which backend will start stream changes. If parameter will not specify, streaming starts from restart_lsn. For more details see pg_replication_slots description.- Specified by:
 startPositionin interfaceReplicationRequest.PhysicalReplicationStep2- Specified by:
 startPositionin interfaceReplicationRequest.WithStartPosition- Parameters:
 lsn- not null position from which need start replicate changes- Returns:
 thisbuilder
 - 
statusInterval
Specifies the number of time between status packets sent back to the server. This allows for easier monitoring of the progress from server. A value of zero disables the periodic status updates completely, although an update will still be sent when requested by the server, to avoid timeout disconnect. The default value is 10 seconds.- Specified by:
 statusIntervalin interfaceReplicationRequest.WithStatusInterval- Parameters:
 interval- positive time- Returns:
 thisbuilder.
 - 
build
ReplicationRequest build()Returns the physicalReplicationRequest.- Returns:
 - the physical 
ReplicationRequest. 
 
 -