Class SeekPolicyKafkaConsumerResumeAdapter

    • Constructor Detail

      • SeekPolicyKafkaConsumerResumeAdapter

        public SeekPolicyKafkaConsumerResumeAdapter​(SeekPolicy seekPolicy)
    • Method Detail

      • setConsumer

        public void setConsumer​(org.apache.kafka.clients.consumer.Consumer<?,​?> consumer)
        Description copied from interface: KafkaConsumerResumeAdapter
        Sets the Kafka consumer instance for the adapter. Please note that the Kafka consumer is not safe for concurrent access
        Specified by:
        setConsumer in interface KafkaConsumerResumeAdapter
        Parameters:
        consumer - the consumer instance
      • setKafkaResumable

        public void setKafkaResumable​(KafkaResumable kafkaResumable)
        Description copied from interface: KafkaConsumerResumeAdapter
        Sets an optional resumable instance for the adapter. This is usually set during partition assignment. Garanteed not to be null and safe to ignore if partition and topic information are not used.
        Specified by:
        setKafkaResumable in interface KafkaConsumerResumeAdapter
        Parameters:
        kafkaResumable - the resumable instance
      • resume

        public void resume()
        Specified by:
        resume in interface org.apache.camel.resume.ResumeAdapter