Class OffsetState
java.lang.Object
io.debezium.connector.postgresql.spi.OffsetState
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOffsetState(Lsn lsn, Long txId, Long xmin, Instant lastCommitTs, boolean isSnapshot) -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Field Details
-
lsn
-
txId
-
xmin
-
commitTs
-
snapshotting
private final boolean snapshotting
-
-
Constructor Details
-
OffsetState
-
-
Method Details
-
lastSeenLsn
- Returns:
- the last LSN seen by debezium
-
lastSeenTxId
- Returns:
- the last txid seen by debezium
-
lastSeenXmin
- Returns:
- the last xmin seen by debezium
-
lastCommitTs
- Returns:
- the last commit timestamp seen by debezium
-
snapshotInEffect
public boolean snapshotInEffect()- Returns:
- indicates if a snapshot is happening
-