public class PhysicalStreamBuilder extends AbstractStreamBuilder<ChainedPhysicalStreamBuilder> implements ChainedPhysicalStreamBuilder, PhysicalReplicationOptions
slotName, startPosition, statusIntervalMs| Constructor and Description |
|---|
PhysicalStreamBuilder(StartPhysicalReplicationCallback startCallback) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable 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.
|
withSlotName, withStartPosition, withStatusIntervalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithSlotName, withStartPosition, withStatusIntervalpublic PhysicalStreamBuilder(StartPhysicalReplicationCallback startCallback)
startCallback - not null callback that should be execute after build parameters for start
replicationprotected ChainedPhysicalStreamBuilder self()
self in class AbstractStreamBuilder<ChainedPhysicalStreamBuilder>public PGReplicationStream start() throws SQLException
ChainedPhysicalStreamBuilderstart in interface ChainedPhysicalStreamBuilderSQLException - on errorpublic @Nullable String getSlotName()
CommonOptionsgetSlotName in interface CommonOptionspublic LogSequenceNumber getStartLSNPosition()
getStartLSNPosition in interface CommonOptionspublic int getStatusInterval()
CommonOptionsgetStatusInterval in interface CommonOptionsCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.