Interface SubscribeAdapter
- All Known Implementing Classes:
DefaultSubscribeAdapter
public interface SubscribeAdapter
A pluggable adapter for handling custom subscriptions
-
Method Summary
-
Method Details
-
subscribe
void subscribe(org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, org.apache.kafka.clients.consumer.ConsumerRebalanceListener reBalanceListener, TopicInfo topicInfo) Handle the subscription to a Kafka topic- Parameters:
consumer- the Kafka consumerreBalanceListener- a ConsumerRebalanceLister instance provided by Camel to use when subscribing TopicInfo: Camel's own topic information (i.e., if it's a pattern or the list of topics, etc.)
-