Class PreComputedRecordsSourceConnector.PreComputedRecordsTask

java.lang.Object
org.apache.kafka.connect.source.SourceTask
io.debezium.performance.engine.connector.PreComputedRecordsSourceConnector.PreComputedRecordsTask
All Implemented Interfaces:
org.apache.kafka.connect.connector.Task
Enclosing class:
PreComputedRecordsSourceConnector

public static class PreComputedRecordsSourceConnector.PreComputedRecordsTask extends org.apache.kafka.connect.source.SourceTask
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.kafka.connect.source.SourceTask

    org.apache.kafka.connect.source.SourceTask.TransactionBoundary
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private int
     
    private static List<org.apache.kafka.connect.source.SourceRecord>
     
    private int
     
    private int
     
    private int
     
    private final AtomicBoolean
     

    Fields inherited from class org.apache.kafka.connect.source.SourceTask

    context, TRANSACTION_BOUNDARY_CONFIG
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.apache.kafka.connect.source.SourceRecord>
     
    void
     
    void
     
     

    Methods inherited from class org.apache.kafka.connect.source.SourceTask

    commit, commitRecord, commitRecord, initialize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • records

      private static List<org.apache.kafka.connect.source.SourceRecord> records
    • running

      private final AtomicBoolean running
    • batchCount

      private int batchCount
    • recordsPerBatch

      private int recordsPerBatch
    • recordsFrom

      private int recordsFrom
    • currentBatch

      private int currentBatch
    • recordsSent

      private int recordsSent
  • Constructor Details

    • PreComputedRecordsTask

      public PreComputedRecordsTask()
  • Method Details

    • version

      public String version()
    • start

      public void start(Map<String,String> props)
      Specified by:
      start in interface org.apache.kafka.connect.connector.Task
      Specified by:
      start in class org.apache.kafka.connect.source.SourceTask
    • poll

      public List<org.apache.kafka.connect.source.SourceRecord> poll() throws InterruptedException
      Specified by:
      poll in class org.apache.kafka.connect.source.SourceTask
      Throws:
      InterruptedException
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.kafka.connect.connector.Task
      Specified by:
      stop in class org.apache.kafka.connect.source.SourceTask