public final class ReplicationSlot extends Object
Returned keys of CREATE_REPLICATION_SLOT:
=>
the slot name
=>
LSN at which we became consistent
=>
exported snapshot's name (may be null
)
=>
output plugin (may be null
)
Constructor and Description |
---|
ReplicationSlot(String slotName,
ReplicationType replicationType,
LogSequenceNumber consistentPoint,
String snapshotName,
String outputPlugin) |
Modifier and Type | Method and Description |
---|---|
LogSequenceNumber |
getConsistentPoint()
Returns the
LSN at which we became consistent. |
String |
getOutputPlugin()
Returns the output plugin used on slot creation.
|
ReplicationType |
getReplicationType()
Replication type of the slot created,
PHYSICAL or LOGICAL . |
String |
getSlotName()
Returns the replication slot name.
|
String |
getSnapshotName()
Returns the exported snapshot name at the point of replication slot creation.
|
public ReplicationSlot(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, @Nullable String snapshotName, @Nullable String outputPlugin)
public String getSlotName()
public ReplicationType getReplicationType()
PHYSICAL
or LOGICAL
.ReplicationType
, PHYSICAL
or LOGICAL
public LogSequenceNumber getConsistentPoint()
LSN
at which we became consistent.LogSequenceNumber
at consistent_point
@Nullable public String getSnapshotName()
As long as the exporting transaction remains open, other transactions can import its snapshot, and thereby be guaranteed that they see exactly the same view of the database that the first transaction sees.
snapshot_name
Copyright © 2020. All rights reserved.