Class OffsetKafkaConsumerResumeStrategy
- java.lang.Object
-
- org.apache.camel.component.kafka.consumer.support.OffsetKafkaConsumerResumeStrategy
-
- All Implemented Interfaces:
KafkaConsumerResumeStrategy
,org.apache.camel.ResumeStrategy<org.apache.kafka.clients.consumer.Consumer<?,?>>
public class OffsetKafkaConsumerResumeStrategy extends Object implements KafkaConsumerResumeStrategy
A resume strategy that uses Kafka's offset for resuming
-
-
Constructor Summary
Constructors Constructor Description OffsetKafkaConsumerResumeStrategy(org.apache.camel.spi.StateRepository<String,String> offsetRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
resume(org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
Perform the resume operation.
-
-
-
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 interfaceKafkaConsumerResumeStrategy
- Specified by:
resume
in interfaceorg.apache.camel.ResumeStrategy<org.apache.kafka.clients.consumer.Consumer<?,?>>
- Parameters:
consumer
- an instance of the KafkaConsumer which is resuming the operation
-
-