Interface KafkaConsumerResumeStrategy
-
- All Superinterfaces:
org.apache.camel.ResumeStrategy<org.apache.kafka.clients.consumer.Consumer<?,?>>
- All Known Implementing Classes:
OffsetKafkaConsumerResumeStrategy
,SeekPolicyKafkaConsumerResumeStrategy
public interface KafkaConsumerResumeStrategy extends org.apache.camel.ResumeStrategy<org.apache.kafka.clients.consumer.Consumer<?,?>>
Defines a strategy for handling resume operations. Implementations can define different ways to handle how to resume processing records.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
resume(org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
Perform the resume operation.
-
-
-
Method Detail
-
resume
void resume(org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
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 interfaceorg.apache.camel.ResumeStrategy<org.apache.kafka.clients.consumer.Consumer<?,?>>
- Parameters:
consumer
- an instance of the KafkaConsumer which is resuming the operation
-
-