Class OffsetState
- java.lang.Object
-
- io.debezium.connector.postgresql.spi.OffsetState
-
@Incubating public class OffsetState extends Object
A simple data container that represents the last seen offset which was written by debezium. This data may differ based on decoding plugin and settings, such as lastSeenXmin being null if xmin tracking isn't enabled
-
-
Constructor Summary
Constructors Constructor Description OffsetState(Lsn lsn, Long txId, Long xmin, Instant lastCommitTs, boolean isSnapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantlastCommitTs()LsnlastSeenLsn()LonglastSeenTxId()LonglastSeenXmin()booleansnapshotInEffect()
-
-
-
Method Detail
-
lastSeenLsn
public Lsn lastSeenLsn()
- Returns:
- the last LSN seen by debezium
-
lastSeenTxId
public Long lastSeenTxId()
- Returns:
- the last txid seen by debezium
-
lastSeenXmin
public Long lastSeenXmin()
- Returns:
- the last xmin seen by debezium
-
lastCommitTs
public Instant lastCommitTs()
- Returns:
- the last commit timestamp seen by debezium
-
snapshotInEffect
public boolean snapshotInEffect()
- Returns:
- indicates if a snapshot is happening
-
-