All Known Implementing Classes:
DefaultSubscribeAdapter

public interface SubscribeAdapter
A pluggable adapter for handling custom subscriptions
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • 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 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.)