Interface KafkaConsumerFactory<K,​V>

  • Type Parameters:
    K - the type of the key of the Kafka record
    V - the type of the value of the Kafka record
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    DefaultKafkaConsumerFactory

    public interface KafkaConsumerFactory<K,​V>
    extends Serializable
    the factory to create the underlying KafkaConsumer instance the Kafka Spout will be using to consume data from Kafka cluster
    • Method Detail

      • create

        org.apache.kafka.clients.consumer.Consumer<K,​V> create()
        create the underlying KafkaConsumer
        Returns:
        kafka consumer instance