Class SinkNotificationChannel.EmptyOffsetContext
java.lang.Object
io.debezium.pipeline.notification.channels.SinkNotificationChannel.EmptyOffsetContext
- All Implemented Interfaces:
OffsetContext
- Enclosing class:
- SinkNotificationChannel
private static class SinkNotificationChannel.EmptyOffsetContext
extends Object
implements OffsetContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.pipeline.spi.OffsetContext
OffsetContext.Loader<O extends OffsetContext>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
event
(DataCollectionId collectionId, Instant timestamp) Records the name of the collection and the timestamp of the last eventorg.apache.kafka.connect.data.Struct
org.apache.kafka.connect.data.Schema
Provide a context used byTransactionMonitor
so persist its internal state into offsets to survive between restarts.boolean
Whether this offset indicates that an (uncompleted) snapshot is currently running or not.void
markSnapshotRecord
(SnapshotRecord record) Mark the position of the record in the snapshot.void
Signals that a snapshot has been completed, which should reflect in an updated offset state.void
Signals that a snapshot will complete, which should reflect in an updated offset state.void
Signals that a snapshot will begin, which should reflect in an updated offset state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.debezium.pipeline.spi.OffsetContext
getIncrementalSnapshotContext, incrementalSnapshotEvents
-
Constructor Details
-
EmptyOffsetContext
private EmptyOffsetContext()
-
-
Method Details
-
getOffset
- Specified by:
getOffset
in interfaceOffsetContext
-
getSourceInfoSchema
public org.apache.kafka.connect.data.Schema getSourceInfoSchema()- Specified by:
getSourceInfoSchema
in interfaceOffsetContext
-
getSourceInfo
public org.apache.kafka.connect.data.Struct getSourceInfo()- Specified by:
getSourceInfo
in interfaceOffsetContext
-
isSnapshotRunning
public boolean isSnapshotRunning()Description copied from interface:OffsetContext
Whether this offset indicates that an (uncompleted) snapshot is currently running or not.- Specified by:
isSnapshotRunning
in interfaceOffsetContext
- Returns:
-
markSnapshotRecord
Description copied from interface:OffsetContext
Mark the position of the record in the snapshot.- Specified by:
markSnapshotRecord
in interfaceOffsetContext
-
preSnapshotStart
public void preSnapshotStart()Description copied from interface:OffsetContext
Signals that a snapshot will begin, which should reflect in an updated offset state.- Specified by:
preSnapshotStart
in interfaceOffsetContext
-
preSnapshotCompletion
public void preSnapshotCompletion()Description copied from interface:OffsetContext
Signals that a snapshot will complete, which should reflect in an updated offset state.- Specified by:
preSnapshotCompletion
in interfaceOffsetContext
-
postSnapshotCompletion
public void postSnapshotCompletion()Description copied from interface:OffsetContext
Signals that a snapshot has been completed, which should reflect in an updated offset state.- Specified by:
postSnapshotCompletion
in interfaceOffsetContext
-
event
Description copied from interface:OffsetContext
Records the name of the collection and the timestamp of the last event- Specified by:
event
in interfaceOffsetContext
-
getTransactionContext
Description copied from interface:OffsetContext
Provide a context used byTransactionMonitor
so persist its internal state into offsets to survive between restarts.- Specified by:
getTransactionContext
in interfaceOffsetContext
- Returns:
- transaction context
-