Class ServerInfo.ReplicationSlot

  • Enclosing class:
    ServerInfo

    protected static class ServerInfo.ReplicationSlot
    extends Object
    Information about a server replication slot
    • Field Detail

      • active

        private boolean active
      • latestFlushedLsn

        private Lsn latestFlushedLsn
      • restartLsn

        private Lsn restartLsn
      • catalogXmin

        private Long catalogXmin
    • Constructor Detail

      • ReplicationSlot

        protected ReplicationSlot​(boolean active,
                                  Lsn latestFlushedLsn,
                                  Lsn restartLsn,
                                  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()