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 Details

    • INVALID

      protected static final ServerInfo.ReplicationSlot INVALID
    • active

      private boolean active
    • latestFlushedLsn

      private Lsn latestFlushedLsn
    • restartLsn

      private Lsn restartLsn
    • catalogXmin

      private Long catalogXmin
  • Constructor Details

    • ReplicationSlot

      protected ReplicationSlot(boolean active, Lsn latestFlushedLsn, Lsn restartLsn, Long catalogXmin)
  • Method Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object