Class OffsetKafkaConsumerResumeStrategy

    • Constructor Detail

      • OffsetKafkaConsumerResumeStrategy

        public OffsetKafkaConsumerResumeStrategy​(org.apache.camel.spi.StateRepository<String,​String> offsetRepository)
    • Method Detail

      • resume

        public void resume​(org.apache.kafka.clients.consumer.Consumer<?,​?> consumer)
        Description copied from interface: KafkaConsumerResumeStrategy
        Perform the resume operation. This runs in the scope of the Kafka Consumer thread and may run concurrently with other consumer instances when the component is set up to use more than one of them. As such, implementations are responsible for ensuring the thread-safety of the operations within the resume method.
        Specified by:
        resume in interface KafkaConsumerResumeStrategy
        Specified by:
        resume in interface org.apache.camel.ResumeStrategy<org.apache.kafka.clients.consumer.Consumer<?,​?>>
        Parameters:
        consumer - an instance of the KafkaConsumer which is resuming the operation