@Factory
public class KafkaConsumerFactory
extends java.lang.Object
Consumer
instances.Constructor and Description |
---|
KafkaConsumerFactory() |
Modifier and Type | Method and Description |
---|---|
<K,V> org.apache.kafka.clients.consumer.KafkaConsumer<K,V> |
createConsumer(AbstractKafkaConsumerConfiguration<K,V> consumerConfiguration)
Creates a new
KafkaConsumer for the given configuration. |
@Prototype public <K,V> org.apache.kafka.clients.consumer.KafkaConsumer<K,V> createConsumer(@Parameter AbstractKafkaConsumerConfiguration<K,V> consumerConfiguration)
KafkaConsumer
for the given configuration.K
- The key typeV
- The value typeconsumerConfiguration
- The consumer configuration