Class ServerInfo.ReplicationSlot
java.lang.Object
io.debezium.connector.postgresql.connection.ServerInfo.ReplicationSlot
- Enclosing class:
ServerInfo
Information about a server replication slot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Longprotected static final ServerInfo.ReplicationSlotprivate Lsnprivate Lsn -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReplicationSlot(boolean active, Lsn latestFlushedLsn, Lsn restartLsn, Long catalogXmin) -
Method Summary
-
Field Details
-
INVALID
-
active
private boolean active -
latestFlushedLsn
-
restartLsn
-
catalogXmin
-
-
Constructor Details
-
ReplicationSlot
-
-
Method Details
-
active
protected boolean active() -
latestFlushedLsn
Represents the `confirmed_flushed_lsn` field of the replication slot. This value represents the latest LSN that the logical replication consumer has reported back to postgres.- Returns:
- the latestFlushedLsn
-
restartLsn
Represents the `restart_lsn` field of the replication slot. The restart_lsn will be the LSN the slot restarts from in the event of the disconnect. This can be distinct from the `confirmed_flushed_lsn` as the two pointers are moved independently- Returns:
- the restartLsn
-
catalogXmin
-
hasValidFlushedLsn
protected boolean hasValidFlushedLsn() -
asSlotState
-
toString
-