Class DefaultSubscribeAdapter

java.lang.Object
org.apache.camel.component.kafka.consumer.support.subcription.DefaultSubscribeAdapter
All Implemented Interfaces:
SubscribeAdapter

public class DefaultSubscribeAdapter extends Object implements SubscribeAdapter
  • Constructor Details

    • DefaultSubscribeAdapter

      public DefaultSubscribeAdapter()
    • DefaultSubscribeAdapter

      public DefaultSubscribeAdapter(String topic, boolean topicMustExists)
  • 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: SubscribeAdapter
      Handle the subscription to a Kafka topic
      Specified by:
      subscribe in interface SubscribeAdapter
      Parameters:
      consumer - the Kafka consumer
      reBalanceListener - 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.)