Package io.debezium.pipeline.source.spi
Interface DataChangeEventListener<P extends Partition>
-
- All Known Subinterfaces:
ChangeEventSourceMetrics<P>,SnapshotChangeEventSourceMetrics<P>,StreamingChangeEventSourceMetrics<P>
- All Known Implementing Classes:
DefaultSnapshotChangeEventSourceMetrics,DefaultStreamingChangeEventSourceMetrics,PipelineMetrics
public interface DataChangeEventListener<P extends Partition>A class invoked byEventDispatcherwhenever an event is available for processing.- Author:
- Jiri Pechanec
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <P extends Partition>
DataChangeEventListener<P>NO_OP()voidonConnectorEvent(P partition, ConnectorEvent event)Invoked for events that represent a connector event.voidonErroneousEvent(P partition, String event)Invoked for events that cannot be processed.voidonErroneousEvent(P partition, String event, Envelope.Operation operation)Invoked for events that cannot be processed.voidonEvent(P partition, DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value, Envelope.Operation operation)Invoked if an event is processed for a captured table.voidonFilteredEvent(P partition, String event)Invoked for events pertaining to non-captured tables.voidonFilteredEvent(P partition, String event, Envelope.Operation operation)Invoked for events pertaining to non-captured tables.
-
-
-
Method Detail
-
onEvent
void onEvent(P partition, DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value, Envelope.Operation operation)
Invoked if an event is processed for a captured table.
-
onFilteredEvent
void onFilteredEvent(P partition, String event)
Invoked for events pertaining to non-captured tables.
-
onFilteredEvent
void onFilteredEvent(P partition, String event, Envelope.Operation operation)
Invoked for events pertaining to non-captured tables.
-
onErroneousEvent
void onErroneousEvent(P partition, String event)
Invoked for events that cannot be processed.
-
onErroneousEvent
void onErroneousEvent(P partition, String event, Envelope.Operation operation)
Invoked for events that cannot be processed.
-
onConnectorEvent
void onConnectorEvent(P partition, ConnectorEvent event)
Invoked for events that represent a connector event.
-
NO_OP
static <P extends Partition> DataChangeEventListener<P> NO_OP()
-
-