Package org.postgresql.replication
Class ReplicationSlotInfo
- java.lang.Object
-
- org.postgresql.replication.ReplicationSlotInfo
-
public final class ReplicationSlotInfo extends java.lang.Object
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
)
- slot_name String
-
-
Field Summary
Fields Modifier and Type Field Description private LogSequenceNumber
consistentPoint
private java.lang.String
outputPlugin
private ReplicationType
replicationType
private java.lang.String
slotName
private java.lang.String
snapshotName
-
Constructor Summary
Constructors Constructor Description ReplicationSlotInfo(java.lang.String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, java.lang.String snapshotName, java.lang.String outputPlugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogSequenceNumber
getConsistentPoint()
LSN at which we became consistent.java.lang.String
getOutputPlugin()
Output Plugin used on slot creation.ReplicationType
getReplicationType()
Replication type of the slot created, might be PHYSICAL or LOGICAL.java.lang.String
getSlotName()
Replication slot name.java.lang.String
getSnapshotName()
Exported snapshot name at the point of replication slot creation.
-
-
-
Field Detail
-
slotName
private final java.lang.String slotName
-
replicationType
private final ReplicationType replicationType
-
consistentPoint
private final LogSequenceNumber consistentPoint
-
snapshotName
private final java.lang.String snapshotName
-
outputPlugin
private final java.lang.String outputPlugin
-
-
Constructor Detail
-
ReplicationSlotInfo
public ReplicationSlotInfo(java.lang.String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, java.lang.String snapshotName, java.lang.String outputPlugin)
-
-
Method Detail
-
getSlotName
public java.lang.String getSlotName()
Replication slot name.- Returns:
- the slot name
-
getReplicationType
public ReplicationType getReplicationType()
Replication type of the slot created, might be PHYSICAL or LOGICAL.- Returns:
- ReplicationType, PHYSICAL or LOGICAL
-
getConsistentPoint
public LogSequenceNumber getConsistentPoint()
LSN at which we became consistent.- Returns:
- LogSequenceNumber with the consistent_point
-
getSnapshotName
public java.lang.String 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
public java.lang.String getOutputPlugin()
Output Plugin used on slot creation.- Returns:
- output_plugin (may be
null
)
-
-