public class RedshiftReplicationConnectionImpl extends Object implements RedshiftReplicationConnection
| Constructor and Description |
|---|
RedshiftReplicationConnectionImpl(BaseConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
ChainedCreateReplicationSlotBuilder |
createReplicationSlot()
Create replication slot, that can be next use in
RedshiftReplicationConnection.replicationStream() |
void |
dropReplicationSlot(String slotName) |
ChainedStreamBuilder |
replicationStream()
After start replication stream this connection not available to use for another queries until
replication stream will not close.
|
public RedshiftReplicationConnectionImpl(BaseConnection connection)
public ChainedStreamBuilder replicationStream()
RedshiftReplicationConnectionreplicationStream in interface RedshiftReplicationConnectionpublic ChainedCreateReplicationSlotBuilder createReplicationSlot()
RedshiftReplicationConnectionCreate replication slot, that can be next use in RedshiftReplicationConnection.replicationStream()
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.
createReplicationSlot in interface RedshiftReplicationConnectionpublic void dropReplicationSlot(String slotName) throws SQLException
dropReplicationSlot in interface RedshiftReplicationConnectionslotName - not null replication slot name exists in database that should be dropSQLException - if the replication slot cannot be dropped.Copyright © 2024 Amazon.com Inc.. All rights reserved.