Class IncrementalSnapshotNotificationService<P extends Partition,O extends OffsetContext>
java.lang.Object
io.debezium.pipeline.notification.IncrementalSnapshotNotificationService<P,O>
public class IncrementalSnapshotNotificationService<P extends Partition,O extends OffsetContext>
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private final CommonConnectorConfig
static final String
static final String
static final String
static final String
static final String
static final String
static final String
private final NotificationService<P,
O> static final String
static final String
static final String
-
Constructor Summary
ConstructorDescriptionIncrementalSnapshotNotificationService
(NotificationService<P, O> notificationService, CommonConnectorConfig config, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends DataCollectionId>
NotificationbuildNotificationWith
(IncrementalSnapshotContext<T> incrementalSnapshotContext, SnapshotStatus type, Map<String, String> additionalData, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyAborted
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyAborted
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext, List<String> dataCollectionIds) <T extends DataCollectionId>
voidnotifyCompleted
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyInProgress
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyPaused
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyResumed
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyStarted
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyTableScanCompleted
(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext, long totalRowsScanned, IncrementalSnapshotNotificationService.TableScanCompletionStatus status)
-
Field Details
-
INCREMENTAL_SNAPSHOT
- See Also:
-
DATA_COLLECTIONS
- See Also:
-
SCANNED_COLLECTION
- See Also:
-
CURRENT_COLLECTION_IN_PROGRESS
- See Also:
-
MAXIMUM_KEY
- See Also:
-
LAST_PROCESSED_KEY
- See Also:
-
NONE
- See Also:
-
CONNECTOR_NAME
- See Also:
-
TOTAL_ROWS_SCANNED
- See Also:
-
STATUS
- See Also:
-
LIST_DELIMITER
- See Also:
-
notificationService
-
connectorConfig
-
clock
-
-
Constructor Details
-
IncrementalSnapshotNotificationService
public IncrementalSnapshotNotificationService(NotificationService<P, O> notificationService, CommonConnectorConfig config, Clock clock)
-
-
Method Details
-
notifyStarted
public <T extends DataCollectionId> void notifyStarted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) -
notifyPaused
public <T extends DataCollectionId> void notifyPaused(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) -
notifyResumed
public <T extends DataCollectionId> void notifyResumed(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) -
notifyAborted
public <T extends DataCollectionId> void notifyAborted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) -
notifyAborted
public <T extends DataCollectionId> void notifyAborted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext, List<String> dataCollectionIds) -
notifyTableScanCompleted
public <T extends DataCollectionId> void notifyTableScanCompleted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext, long totalRowsScanned, IncrementalSnapshotNotificationService.TableScanCompletionStatus status) -
notifyInProgress
public <T extends DataCollectionId> void notifyInProgress(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) -
notifyCompleted
public <T extends DataCollectionId> void notifyCompleted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) -
buildNotificationWith
private <T extends DataCollectionId> Notification buildNotificationWith(IncrementalSnapshotContext<T> incrementalSnapshotContext, SnapshotStatus type, Map<String, String> additionalData, OffsetContext offsetContext)
-