Package org.postgresql.replication
Class ReplicationSlotInfo
java.lang.Object
org.postgresql.replication.ReplicationSlotInfo
Information returned on replication slot creation.
Returned keys of CREATE_REPLICATION_SLOT:
- slot_name String
=>
the slot name - consistent_point String
=>
LSN at which we became consistent - snapshot_name String
=>
exported snapshot's name (may benull
) - output_plugin String
=>
output plugin (may benull
)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LogSequenceNumber
private final String
private final ReplicationType
private final String
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionReplicationSlotInfo
(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, String snapshotName, String outputPlugin) -
Method Summary
Modifier and TypeMethodDescriptionLSN at which we became consistent.Output Plugin used on slot creation.Replication type of the slot created, might be PHYSICAL or LOGICAL.Replication slot name.Exported snapshot name at the point of replication slot creation.
-
Field Details
-
slotName
-
replicationType
-
consistentPoint
-
snapshotName
-
outputPlugin
-
-
Constructor Details
-
ReplicationSlotInfo
public ReplicationSlotInfo(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, String snapshotName, String outputPlugin)
-
-
Method Details
-
getSlotName
Replication slot name.- Returns:
- the slot name
-
getReplicationType
Replication type of the slot created, might be PHYSICAL or LOGICAL.- Returns:
- ReplicationType, PHYSICAL or LOGICAL
-
getConsistentPoint
LSN at which we became consistent.- Returns:
- LogSequenceNumber with the consistent_point
-
getSnapshotName
Exported snapshot name at the point of replication slot creation.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.
- Returns:
- exported snapshot_name (may be
null
)
-
getOutputPlugin
Output Plugin used on slot creation.- Returns:
- output_plugin (may be
null
)
-