K
- V
- @Requires(missingProperty="kafka.producers.default") @Requires(beans=KafkaDefaultConfiguration.class) @Primary @Prototype public class DefaultKafkaProducerConfiguration<K,V> extends AbstractKafkaProducerConfiguration<K,V>
KafkaProducer
configuration when no default is specified.DEFAULT_BOOTSTRAP_SERVERS, DEFAULT_KAFKA_PORT, EMBEDDED, EMBEDDED_TOPICS, PREFIX
Constructor and Description |
---|
DefaultKafkaProducerConfiguration(AbstractKafkaConfiguration defaultConfiguration)
Construct a new
KafkaConsumerConfiguration for the given defaults. |
DefaultKafkaProducerConfiguration(KafkaDefaultConfiguration defaultConfiguration)
Constructs a new instance.
|
getKeySerializer, getValueSerializer, setKeySerializer, setValueSerializer
getConfig
@Inject public DefaultKafkaProducerConfiguration(KafkaDefaultConfiguration defaultConfiguration)
defaultConfiguration
- The default Kafka configurationpublic DefaultKafkaProducerConfiguration(AbstractKafkaConfiguration defaultConfiguration)
KafkaConsumerConfiguration
for the given defaults.defaultConfiguration
- The default configuration