Package org.apache.heron.spouts.kafka
Interface KafkaConsumerFactory<K,V>
-
- Type Parameters:
K
- the type of the key of the Kafka recordV
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.kafka.clients.consumer.Consumer<K,V>
create()
create the underlying KafkaConsumer
-