public class PhysicalStreamBuilder extends AbstractStreamBuilder<ChainedPhysicalStreamBuilder> implements ChainedPhysicalStreamBuilder, PhysicalReplicationOptions
automaticFlush, slotName, startPosition, statusIntervalMs| Constructor and Description |
|---|
PhysicalStreamBuilder(StartPhysicalReplicationCallback startCallback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutomaticFlush() |
java.lang.String |
getSlotName()
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.
|
LogSequenceNumber |
getStartLSNPosition() |
int |
getStatusInterval()
Specifies the number of millisecond between status packets sent back to the server.
|
protected ChainedPhysicalStreamBuilder |
self() |
PGReplicationStream |
start()
Open physical replication stream.
|
withAutomaticFlush, withSlotName, withStartPosition, withStatusIntervalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithAutomaticFlush, withSlotName, withStartPosition, withStatusIntervalpublic PhysicalStreamBuilder(StartPhysicalReplicationCallback startCallback)
startCallback - not null callback that should be executed after build parameters for start
replicationprotected ChainedPhysicalStreamBuilder self()
self in class AbstractStreamBuilder<ChainedPhysicalStreamBuilder>public PGReplicationStream start() throws java.sql.SQLException
ChainedPhysicalStreamBuilderstart in interface ChainedPhysicalStreamBuilderjava.sql.SQLException - on errorpublic java.lang.String getSlotName()
CommonOptionsgetSlotName in interface CommonOptionspublic LogSequenceNumber getStartLSNPosition()
getStartLSNPosition in interface CommonOptionspublic int getStatusInterval()
CommonOptionsgetStatusInterval in interface CommonOptionspublic boolean getAutomaticFlush()
getAutomaticFlush in interface CommonOptionsCopyright © 2025 PostgreSQL Global Development Group. All rights reserved.