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, withStatusInterval
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withSlotName, withStartPosition, withStatusInterval
public 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
ChainedPhysicalStreamBuilder
start
in interface ChainedPhysicalStreamBuilder
SQLException
- on errorpublic @Nullable String getSlotName()
CommonOptions
getSlotName
in interface CommonOptions
public LogSequenceNumber getStartLSNPosition()
getStartLSNPosition
in interface CommonOptions
public int getStatusInterval()
CommonOptions
getStatusInterval
in interface CommonOptions
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.