public interface PartitionConsumerProvider
PartitionConsumer
without explicit Kafka version specification.Modifier and Type | Method and Description |
---|---|
<K,V> PartitionConsumer<K,V> |
createConsumer(java.util.Properties properties) |
<K,V> PartitionConsumer<K,V> |
createConsumer(java.util.Properties properties,
java.lang.Object keyDeserializer,
java.lang.Object valueDeserializer)
Creates consumer with key/value-decoder/deserializer instances passed.
|
<K,V> PartitionConsumer<K,V> createConsumer(java.util.Properties properties, java.lang.Object keyDeserializer, java.lang.Object valueDeserializer)
createConsumer(Properties)
which doesn't require to create deserializer instances.K
- - key classV
- - value classproperties
- - consumer properties, see ConsumerConfig
for the details.
For Kafka 08 only listed properties are supported, for greater versions all consumer properties.keyDeserializer
- - implementation-specific decoder/deserializer for the keyvalueDeserializer
- - implementation-specific decoder/deserializer for the key<K,V> PartitionConsumer<K,V> createConsumer(java.util.Properties properties)
K
- - key classV
- - value classproperties
- - consumer properties, see ConsumerConfig
for the details