Create a Producer
instance from these settings.
Create a Producer
instance from these settings.
This will fail with IllegalStateException
if asynchronous enrichment is set up -- always prefer createKafkaProducerAsync() or createKafkaProducerCompletionStage().
IllegalStateException
if asynchronous enrichment is set via withEnrichAsync
or withEnrichCompletionStage
, you must use createKafkaProducerAsync
/ createKafkaProducerCompletionStage
to apply it
Scala API.
Scala API.
Create a Kafka Producer instance from these settings
(without blocking for enriched
).
Java API.
Java API.
Create a Kafka Producer instance from these settings
(without blocking for enriched
).
Executor for asynchronous producer creation
Applies enrichAsync
to complement these settings from asynchronous sources.
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.
Call KafkaProducer.close
on the org.apache.kafka.clients.producer.KafkaProducer when the producer stage
receives a shutdown signal.
Java API:
Duration to wait for KafkaProducer.close
to finish.
Duration to wait for KafkaProducer.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.
Scala API.
Scala API. A hook to allow for resolving some settings asynchronously.
2.0.0
Java API.
Java API. A hook to allow for resolving some settings asynchronously.
2.0.0
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 with an external producer.
Replaces the default Kafka producer creation logic with an external producer. This will also set
closeProducerOnStop = false
by default.
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.
(Since version 2.0.0) Use createKafkaProducer(), createKafkaProducerAsync(), or createKafkaProducerCompletionStage() to get a new KafkaProducer
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.