K
- The key deserializer typeV
- The value deserializer type@EachProperty(value="kafka.consumers", primary="default") @Requires(beans=KafkaDefaultConfiguration.class) public class KafkaConsumerConfiguration<K,V> extends AbstractKafkaConsumerConfiguration<K,V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The default consumers configuration.
|
DEFAULT_BOOTSTRAP_SERVERS, DEFAULT_KAFKA_PORT, EMBEDDED, EMBEDDED_TOPICS
Constructor and Description |
---|
KafkaConsumerConfiguration(java.lang.String consumerName,
KafkaDefaultConfiguration defaultConfiguration,
io.micronaut.context.env.Environment environment)
Construct a new
KafkaConsumerConfiguration for the given defaults. |
getKeyDeserializer, getValueDeserializer, setKeyDeserializer, setValueDeserializer
getConfig
public static final java.lang.String PREFIX
public KafkaConsumerConfiguration(@Parameter java.lang.String consumerName, KafkaDefaultConfiguration defaultConfiguration, io.micronaut.context.env.Environment environment)
KafkaConsumerConfiguration
for the given defaults.consumerName
- The name of the consumerdefaultConfiguration
- The default configurationenvironment
- The environment