Interface PostgresqlReplicationConnection
- All Superinterfaces:
Closeable
A PostgreSQL replication connection.
-
Method Summary
Modifier and TypeMethodDescriptionclose()createSlot(ReplicationSlotRequest request) Create a replication slot for logical or physical replication.Returns thePostgresqlConnectionMetadatafor this connection.startReplication(ReplicationRequest request) Starts theReplicationStreamfor logical or physical replication.
-
Method Details
-
close
-
createSlot
Create a replication slot for logical or physical replication.- Parameters:
request- description of the slot to create- Returns:
MonoemittingReplicationSlotinformation once the slot was created
-
startReplication
Starts theReplicationStreamfor logical or physical replication. After starting the replication stream this connection becomes unavailable for slot creation and other streams unless theReplicationStreamisclosed.- Parameters:
request- description of the replication stream to create- Returns:
MonoemittingReplicationStreamonce the replication was started
-
getMetadata
PostgresqlConnectionMetadata getMetadata()Returns thePostgresqlConnectionMetadatafor this connection.- Returns:
- the
PostgresqlConnectionMetadatafor this connection
-