K
- The key deserializer typeV
- The value deserializer typepublic abstract class AbstractKafkaConsumerConfiguration<K,V> extends AbstractKafkaConfiguration<K,V>
DEFAULT_BOOTSTRAP_SERVERS, DEFAULT_KAFKA_PORT, EMBEDDED, EMBEDDED_TOPICS, PREFIX
Modifier | Constructor and Description |
---|---|
protected |
AbstractKafkaConsumerConfiguration(java.util.Properties config)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<org.apache.kafka.common.serialization.Deserializer<K>> |
getKeyDeserializer() |
java.util.Optional<org.apache.kafka.common.serialization.Deserializer<V>> |
getValueDeserializer() |
void |
setKeyDeserializer(org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer)
Sets the key deserializer.
|
void |
setValueDeserializer(org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer)
Sets the default value deserializer.
|
getConfig
protected AbstractKafkaConsumerConfiguration(java.util.Properties config)
config
- The config to usepublic java.util.Optional<org.apache.kafka.common.serialization.Deserializer<K>> getKeyDeserializer()
Deserializer
public void setKeyDeserializer(@Nullable org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer)
keyDeserializer
- The key serializerpublic java.util.Optional<org.apache.kafka.common.serialization.Deserializer<V>> getValueDeserializer()
Deserializer
public void setValueDeserializer(@Nullable org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer)
valueDeserializer
- The value deserializer