Class ServerInfo.ReplicationSlot
- java.lang.Object
-
- io.debezium.connector.postgresql.connection.ServerInfo.ReplicationSlot
-
- Enclosing class:
- ServerInfo
protected static class ServerInfo.ReplicationSlot extends Object
Information about a server replication slot
-
-
Field Summary
Fields Modifier and Type Field Description private booleanactiveprivate LongcatalogXminprotected static ServerInfo.ReplicationSlotINVALIDprivate LsnlatestFlushedLsnprivate LsnrestartLsn
-
Constructor Summary
Constructors Modifier Constructor Description protectedReplicationSlot(boolean active, Lsn latestFlushedLsn, Lsn restartLsn, Long catalogXmin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanactive()protected SlotStateasSlotState()protected LongcatalogXmin()protected booleanhasValidFlushedLsn()protected LsnlatestFlushedLsn()Represents the `confirmed_flushed_lsn` field of the replication slot.protected LsnrestartLsn()Represents the `restart_lsn` field of the replication slot.StringtoString()
-
-
-
Field Detail
-
INVALID
protected static final ServerInfo.ReplicationSlot INVALID
-
active
private boolean active
-
latestFlushedLsn
private Lsn latestFlushedLsn
-
restartLsn
private Lsn restartLsn
-
catalogXmin
private Long catalogXmin
-
-
Method Detail
-
active
protected boolean active()
-
latestFlushedLsn
protected Lsn 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
protected Lsn 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
protected Long catalogXmin()
-
hasValidFlushedLsn
protected boolean hasValidFlushedLsn()
-
asSlotState
protected SlotState asSlotState()
-
-