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,
@Nullable String snapshotName,
@Nullable String outputPlugin) |
Modifier and Type | Method and Description |
---|---|
LogSequenceNumber |
getConsistentPoint()
LSN at which we became consistent.
|
@Nullable 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.
|
@Nullable String |
getSnapshotName()
Exported snapshot name at the point of replication slot creation.
|
public ReplicationSlotInfo(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, @Nullable String snapshotName, @Nullable String outputPlugin)
public String getSlotName()
public ReplicationType getReplicationType()
public LogSequenceNumber getConsistentPoint()
public @Nullable 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 @Nullable String getOutputPlugin()
null
)Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.