Interface DebeziumEngine<R>

  • All Superinterfaces:
    AutoCloseable, Closeable, Runnable

    @Incubating
    public interface DebeziumEngine<R>
    extends Runnable, Closeable
    A mechanism for running a single Kafka Connect SourceConnector within an application's process. The engine is entirely standalone and only talks with the source system; no Kafka, Kafka Connect, or Zookeeper processes are needed. Applications using the engine simply set one up and supply a consumer function to which the engine will pass all records containing database change events.

    With the engine, the application that runs the connector assumes all responsibility for fault tolerance, scalability, and durability. Additionally, applications must specify how the engine can store its relational database schema history and offsets. By default, this information will be stored in memory and will thus be lost upon application restart.

    Engine Is designed to be submitted to an Executor or ExecutorService for execution by a single thread, and a running connector can be stopped either by calling #stop() from another thread or by interrupting the running thread (e.g., as is the case with ExecutorService.shutdownNow()).

    Author:
    Randall Hauch