K - the key type.V - the value type.public class DefaultConsumerFactory<K,V> extends Object implements ConsumerFactory<K,V>
ConsumerFactory implementation to produce a new Consumer instance.
On each invocation of createConsumer() it will create a new instance based on properties supplied via
configs| Constructor and Description |
|---|
DefaultConsumerFactory(Map<String,Object> configs) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.clients.consumer.Consumer<K,V> |
createConsumer()
Create a consumer with the settings supplied in configuration properties.
|
public org.apache.kafka.clients.consumer.Consumer<K,V> createConsumer()
ConsumerFactorycreateConsumer in interface ConsumerFactory<K,V>Copyright © 2010–2018. All rights reserved.