public final class ReplicationSlotInfo 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 |
---|
ReplicationSlotInfo(String slotName,
ReplicationType replicationType,
LogSequenceNumber consistentPoint,
String snapshotName,
String outputPlugin) |
Modifier and Type | Method and Description |
---|---|
LogSequenceNumber |
getConsistentPoint()
LSN at which we became consistent.
|
String |
getOutputPlugin()
Output Plugin used on slot creation.
|
ReplicationType |
getReplicationType()
Replication type of the slot created, might be PHYSICAL or LOGICAL.
|
String |
getSlotName()
Replication slot name.
|
String |
getSnapshotName()
Exported snapshot name at the point of replication slot creation.
|
public ReplicationSlotInfo(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, String snapshotName, String outputPlugin)
public String getSlotName()
public ReplicationType getReplicationType()
public LogSequenceNumber getConsistentPoint()
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.
null
)public String getOutputPlugin()
null
)Copyright © 2019 PostgreSQL Global Development Group. All rights reserved.