Class DefaultSubscribeAdapter
java.lang.Object
org.apache.camel.component.kafka.consumer.support.subcription.DefaultSubscribeAdapter
- All Implemented Interfaces:
SubscribeAdapter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultSubscribeAdapter
public DefaultSubscribeAdapter() -
DefaultSubscribeAdapter
-
-
Method Details
-
subscribe
public void subscribe(org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, org.apache.kafka.clients.consumer.ConsumerRebalanceListener reBalanceListener, TopicInfo topicInfo) Description copied from interface:SubscribeAdapterHandle the subscription to a Kafka topic- Specified by:
subscribein interfaceSubscribeAdapter- 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.)
-