Class NoOpPartitionAssignmentAdapter
java.lang.Object
org.apache.camel.component.kafka.consumer.support.classic.NoOpPartitionAssignmentAdapter
- All Implemented Interfaces:
PartitionAssignmentAdapter
A NO-OP resume strategy that does nothing (i.e.: no resume)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCallback for custom logic when partitions has been assigned.voidsetConsumer(org.apache.kafka.clients.consumer.Consumer<?, ?> consumer) Sets the Kafka consumer instance for the adapter.
-
Constructor Details
-
NoOpPartitionAssignmentAdapter
public NoOpPartitionAssignmentAdapter()
-
-
Method Details
-
setConsumer
public void setConsumer(org.apache.kafka.clients.consumer.Consumer<?, ?> consumer) Description copied from interface:PartitionAssignmentAdapterSets the Kafka consumer instance for the adapter. Please note that the Kafka consumer is not safe for concurrent access- Specified by:
setConsumerin interfacePartitionAssignmentAdapter- Parameters:
consumer- the consumer instance
-
handlePartitionAssignment
public void handlePartitionAssignment()Description copied from interface:PartitionAssignmentAdapterCallback for custom logic when partitions has been assigned.- Specified by:
handlePartitionAssignmentin interfacePartitionAssignmentAdapter
-