Class SlotState


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

      • latestFlushedLsn

        private final Lsn latestFlushedLsn
      • restartLsn

        private final Lsn restartLsn
      • catalogXmin

        private final Long catalogXmin
      • active

        private final boolean active
    • Constructor Detail

      • SlotState

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

      • 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