Class SlotState

java.lang.Object
io.debezium.connector.postgresql.spi.SlotState

@Incubating public class SlotState extends Object
A simple data container that holds the state of the current slot
  • Field Details

    • latestFlushedLsn

      private final Lsn latestFlushedLsn
    • restartLsn

      private final Lsn restartLsn
    • catalogXmin

      private final Long catalogXmin
    • active

      private final boolean active
  • Constructor Details

    • SlotState

      public SlotState(Lsn lastFlushLsn, Lsn restartLsn, Long catXmin, boolean active)
  • Method Details

    • slotLastFlushedLsn

      public Lsn slotLastFlushedLsn()
      Returns:
      the slot's `confirmed_flushed_lsn` value
    • slotRestartLsn

      public Lsn slotRestartLsn()
      Returns:
      the slot's `restart_lsn` value
    • slotCatalogXmin

      public Long slotCatalogXmin()
      Returns:
      the slot's `catalog_xmin` value
    • slotIsActive

      public boolean slotIsActive()
      Returns:
      if the slot is active