(Since version 1.0-M1) use the factory methods ProducerSettings.apply
and create
instead
Create a Producer
instance from the settings.
Get the Kafka producer settings as map.
A comma-separated list of host/port pairs to use for establishing the initial connection to the Kafka cluster.
Java API:
Duration to wait for KafkaConsumer.close
to finish.
Duration to wait for KafkaConsumer.close
to finish.
Fully qualified config path which holds the dispatcher configuration to be used by the producer stages.
Fully qualified config path which holds the dispatcher configuration to be used by the producer stages. Some blocking may occur. When this value is empty, the dispatcher configured for the stream will be used.
Java API:
The time interval to commit a transaction when using the Transactional.sink
or Transactional.flow
.
The time interval to commit a transaction when using the Transactional.sink
or Transactional.flow
.
Tuning parameter of how many sends that can run in parallel.
Replaces the default Kafka producer creation logic.
Java API: The raw properties of the kafka-clients driver, see constants in org.apache.kafka.clients.producer.ProducerConfig.
Scala API: The raw properties of the kafka-clients driver, see constants in org.apache.kafka.clients.producer.ProducerConfig.
Scala API: The raw properties of the kafka-clients driver, see constants in org.apache.kafka.clients.producer.ProducerConfig.
The raw properties of the kafka-clients driver, see constants in org.apache.kafka.clients.producer.ProducerConfig.
Settings for producers. See
akka.kafka.producer
section in reference.conf. Note that the companion object providesapply
andcreate
functions for convenient construction of the settings, together with thewith
methods.The constructor is Internal API.