/*
 * Copyright Debezium Authors.
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.debezium.pipeline.source.spi;

import org.apache.kafka.connect.data.Struct;

import io.debezium.data.Envelope.Operation;
import io.debezium.pipeline.ConnectorEvent;
import io.debezium.pipeline.EventDispatcher;
import io.debezium.pipeline.spi.OffsetContext;
import io.debezium.schema.DataCollectionId;

/**
 * A class invoked by {@link EventDispatcher} whenever an event is available for processing.
 *
 * @author Jiri Pechanec
 *
 */
public interface DataChangeEventListener {

    /**
     * Invoked if an event is processed for a captured table.
     */
    void onEvent(DataCollectionId source, OffsetContext offset, Object key, Struct value, Operation operation) throws InterruptedException;

    /**
     * Invoked for events pertaining to non-captured tables.
     */
    void onFilteredEvent(String event);

    /**
     * Invoked for events pertaining to non-captured tables.
     */
    void onFilteredEvent(String event, Operation operation);

    /**
     * Invoked for events that cannot be processed.
     */
    void onErroneousEvent(String event);

    /**
     * Invoked for events that cannot be processed.
     */
    void onErroneousEvent(String event, Operation operation);

    /**
     * Invoked for events that represent a connector event.
     */
    void onConnectorEvent(ConnectorEvent event);

    DataChangeEventListener NO_OP = new DataChangeEventListener() {
        @Override
        public void onFilteredEvent(String event) {
        }

        @Override
        public void onFilteredEvent(String event, Operation operation) {
        }

        @Override
        public void onErroneousEvent(String event) {
        }

        @Override
        public void onErroneousEvent(String event, Operation operation) {
        }

        @Override
        public void onConnectorEvent(ConnectorEvent event) {
        }

        @Override
        public void onEvent(DataCollectionId source, OffsetContext offset, Object key, Struct value, Operation operation) {
        }
    };
}

@@ -830,36 +830,8 @@
 ion)
- throws InterruptedException
 ;%0A%0A 

Remove throws InterruptedException from DataChangeEventListener::onEvent