Package org.postgresql.core
Interface ReplicationProtocol
-
- All Known Implementing Classes:
V3ReplicationProtocol
public interface ReplicationProtocolAbstracts the protocol-specific details of physic and logic replication.With each connection open with replication options associate own instance ReplicationProtocol.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PGReplicationStreamstartLogical(LogicalReplicationOptions options)Starts logical replication.PGReplicationStreamstartPhysical(PhysicalReplicationOptions options)Starts physical replication.
-
-
-
Method Detail
-
startLogical
PGReplicationStream startLogical(LogicalReplicationOptions options) throws java.sql.SQLException
Starts logical replication.- Parameters:
options- not null options for logical replication stream- Returns:
- not null stream instance from which available fetch wal logs that was decode by output plugin
- Throws:
java.sql.SQLException- on error
-
startPhysical
PGReplicationStream startPhysical(PhysicalReplicationOptions options) throws java.sql.SQLException
Starts physical replication.- Parameters:
options- not null options for physical replication stream- Returns:
- not null stream instance from which available fetch wal logs
- Throws:
java.sql.SQLException- on error
-
-