K
- The key deserializer typeV
- The value deserializer type@EachProperty(value="kafka.producers", primary="default") @Requires(beans=KafkaDefaultConfiguration.class) public class KafkaProducerConfiguration<K,V> extends AbstractKafkaProducerConfiguration<K,V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The default configuration for producers.
|
DEFAULT_BOOTSTRAP_SERVERS, DEFAULT_KAFKA_PORT, EMBEDDED, EMBEDDED_TOPICS
Constructor and Description |
---|
KafkaProducerConfiguration(java.lang.String producerName,
KafkaDefaultConfiguration defaultConfiguration,
io.micronaut.context.env.Environment environment)
Constructs the default producer configuration.
|
getKeySerializer, getValueSerializer, setKeySerializer, setValueSerializer
getConfig
public static final java.lang.String PREFIX
public KafkaProducerConfiguration(@Parameter java.lang.String producerName, KafkaDefaultConfiguration defaultConfiguration, io.micronaut.context.env.Environment environment)
producerName
- The name of the producerdefaultConfiguration
- The default Kafka configurationenvironment
- The environment