Class JdbcOffsetBackingStore

java.lang.Object
io.debezium.storage.jdbc.offset.JdbcOffsetBackingStore
All Implemented Interfaces:
org.apache.kafka.connect.storage.OffsetBackingStore

public class JdbcOffsetBackingStore extends Object implements org.apache.kafka.connect.storage.OffsetBackingStore
Implementation of OffsetBackingStore that saves data to database table.
  • Field Details

  • Constructor Details

    • JdbcOffsetBackingStore

      public JdbcOffsetBackingStore()
  • Method Details

    • fromByteBuffer

      public String fromByteBuffer(ByteBuffer data)
    • toByteBuffer

      public ByteBuffer toByteBuffer(String data)
    • configure

      public void configure(org.apache.kafka.connect.runtime.WorkerConfig config)
      Specified by:
      configure in interface org.apache.kafka.connect.storage.OffsetBackingStore
    • start

      public void start()
      Specified by:
      start in interface org.apache.kafka.connect.storage.OffsetBackingStore
    • initializeTable

      private void initializeTable() throws SQLException
      Throws:
      SQLException
    • save

      protected void save()
    • load

      private void load()
    • stopExecutor

      private void stopExecutor()
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.kafka.connect.storage.OffsetBackingStore
    • set

      public Future<Void> set(Map<ByteBuffer,ByteBuffer> values, org.apache.kafka.connect.util.Callback<Void> callback)
      Specified by:
      set in interface org.apache.kafka.connect.storage.OffsetBackingStore
    • get

      Specified by:
      get in interface org.apache.kafka.connect.storage.OffsetBackingStore
    • connectorPartitions

      public Set<Map<String,Object>> connectorPartitions(String connectorName)
      Specified by:
      connectorPartitions in interface org.apache.kafka.connect.storage.OffsetBackingStore