Interface CommitManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void commit()
      Commits everything that has been cached
      void commit​(org.apache.kafka.common.TopicPartition partition)
      Commits the offsets of the given partition
      void forceCommit​(org.apache.kafka.common.TopicPartition partition, long partitionLastOffset)
      Forcefully commits the offset of the given partition
      KafkaManualCommit getManualCommit​(org.apache.camel.Exchange exchange, org.apache.kafka.common.TopicPartition partition, org.apache.kafka.clients.consumer.ConsumerRecord<Object,​Object> record)  
      void recordOffset​(org.apache.kafka.common.TopicPartition partition, long partitionLastOffset)
      Record the last processed offset for future commit
    • Method Detail

      • getManualCommit

        KafkaManualCommit getManualCommit​(org.apache.camel.Exchange exchange,
                                          org.apache.kafka.common.TopicPartition partition,
                                          org.apache.kafka.clients.consumer.ConsumerRecord<Object,​Object> record)
      • commit

        void commit()
        Commits everything that has been cached
      • commit

        void commit​(org.apache.kafka.common.TopicPartition partition)
        Commits the offsets of the given partition
        Parameters:
        partition - the partition to commit the offsets
      • forceCommit

        void forceCommit​(org.apache.kafka.common.TopicPartition partition,
                         long partitionLastOffset)
        Forcefully commits the offset of the given partition
        Parameters:
        partition - the partition to commit the offsets
        partitionLastOffset - the last offset to commit
      • recordOffset

        void recordOffset​(org.apache.kafka.common.TopicPartition partition,
                          long partitionLastOffset)
        Record the last processed offset for future commit
        Parameters:
        partition - the partition to commit the offsets
        partitionLastOffset - the last offset to commit