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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevent(DataCollectionId collectionId, Instant timestamp) Records the name of the collection and the timestamp of the last eventorg.apache.kafka.connect.data.Structorg.apache.kafka.connect.data.SchemaProvide a context used byTransactionMonitorso persist its internal state into offsets to survive between restarts.booleanWhether this offset indicates that an (uncompleted) snapshot is currently running or not.voidmarkSnapshotRecord(SnapshotRecord record) Mark the position of the record in the snapshot.voidSignals that a snapshot has been completed, which should reflect in an updated offset state.voidSignals that a snapshot will complete, which should reflect in an updated offset state.voidSignals 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, waitMethods inherited from interface io.debezium.pipeline.spi.OffsetContext
getIncrementalSnapshotContext, incrementalSnapshotEvents
-
Constructor Details
-
EmptyOffsetContext
private EmptyOffsetContext()
-
-
Method Details
-
getOffset
- Specified by:
getOffsetin interfaceOffsetContext
-
getSourceInfoSchema
public org.apache.kafka.connect.data.Schema getSourceInfoSchema()- Specified by:
getSourceInfoSchemain interfaceOffsetContext
-
getSourceInfo
public org.apache.kafka.connect.data.Struct getSourceInfo()- Specified by:
getSourceInfoin interfaceOffsetContext
-
isSnapshotRunning
public boolean isSnapshotRunning()Description copied from interface:OffsetContextWhether this offset indicates that an (uncompleted) snapshot is currently running or not.- Specified by:
isSnapshotRunningin interfaceOffsetContext- Returns:
-
markSnapshotRecord
Description copied from interface:OffsetContextMark the position of the record in the snapshot.- Specified by:
markSnapshotRecordin interfaceOffsetContext
-
preSnapshotStart
public void preSnapshotStart()Description copied from interface:OffsetContextSignals that a snapshot will begin, which should reflect in an updated offset state.- Specified by:
preSnapshotStartin interfaceOffsetContext
-
preSnapshotCompletion
public void preSnapshotCompletion()Description copied from interface:OffsetContextSignals that a snapshot will complete, which should reflect in an updated offset state.- Specified by:
preSnapshotCompletionin interfaceOffsetContext
-
postSnapshotCompletion
public void postSnapshotCompletion()Description copied from interface:OffsetContextSignals that a snapshot has been completed, which should reflect in an updated offset state.- Specified by:
postSnapshotCompletionin interfaceOffsetContext
-
event
Description copied from interface:OffsetContextRecords the name of the collection and the timestamp of the last event- Specified by:
eventin interfaceOffsetContext
-
getTransactionContext
Description copied from interface:OffsetContextProvide a context used byTransactionMonitorso persist its internal state into offsets to survive between restarts.- Specified by:
getTransactionContextin interfaceOffsetContext- Returns:
- transaction context
-