Package io.debezium.pipeline.source.spi
Interface SnapshotProgressListener<P extends Partition>
-
- All Known Subinterfaces:
SnapshotChangeEventSourceMetrics<P>
- All Known Implementing Classes:
DefaultSnapshotChangeEventSourceMetrics
public interface SnapshotProgressListener<P extends Partition>Invoked whenever an important event or change of state happens during the snapshot phase.- Author:
- Jiri Pechanec
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcurrentChunk(P partition, String chunkId, Object[] chunkFrom, Object[] chunkTo)voidcurrentChunk(P partition, String chunkId, Object[] chunkFrom, Object[] chunkTo, Object[] tableTo)voiddataCollectionSnapshotCompleted(P partition, DataCollectionId dataCollectionId, long numRows)voidmonitoredDataCollectionsDetermined(P partition, Iterable<? extends DataCollectionId> dataCollectionIds)static <P extends Partition>
SnapshotProgressListener<P>NO_OP()voidrowsScanned(P partition, TableId tableId, long numRows)voidsnapshotAborted(P partition)voidsnapshotCompleted(P partition)voidsnapshotStarted(P partition)
-
-
-
Method Detail
-
snapshotStarted
void snapshotStarted(P partition)
-
monitoredDataCollectionsDetermined
void monitoredDataCollectionsDetermined(P partition, Iterable<? extends DataCollectionId> dataCollectionIds)
-
snapshotCompleted
void snapshotCompleted(P partition)
-
snapshotAborted
void snapshotAborted(P partition)
-
dataCollectionSnapshotCompleted
void dataCollectionSnapshotCompleted(P partition, DataCollectionId dataCollectionId, long numRows)
-
currentChunk
void currentChunk(P partition, String chunkId, Object[] chunkFrom, Object[] chunkTo, Object[] tableTo)
-
NO_OP
static <P extends Partition> SnapshotProgressListener<P> NO_OP()
-
-