Publishes synchronously a message of type String to the running Kafka broker.
Publishes synchronously a message of type String to the running Kafka broker.
the topic to which publish the message (it will be auto-created)
the String message to publish
an implicit EmbeddedKafkaConfig
KafkaUnavailableException
if unable to connect to Kafka
Publishes synchronously a batch of message to the running Kafka broker.
Publishes synchronously a batch of message to the running Kafka broker.
the topic to which publish the message (it will be auto-created)
the keys and messages of type T) to publish
an implicit EmbeddedKafkaConfig
an implicit Serializer for the type K
an implicit Serializer for the type T
KafkaUnavailableException
if unable to connect to Kafka
Publishes synchronously a message to the running Kafka broker.
Publishes synchronously a message to the running Kafka broker.
the topic to which publish the message (it will be auto-created)
the key of type K to publish
the message of type T to publish
an implicit EmbeddedKafkaConfig
an implicit Serializer for the type T
KafkaUnavailableException
if unable to connect to Kafka
Publishes synchronously a message to the running Kafka broker.
Publishes synchronously a message to the running Kafka broker.
the producerRecord of type T to publish
an implicit EmbeddedKafkaConfig
an implicit Serializer for the type T
KafkaUnavailableException
if unable to connect to Kafka
Publishes synchronously a message to the running Kafka broker.
Publishes synchronously a message to the running Kafka broker.
the topic to which publish the message (it will be auto-created)
the message of type T to publish
an implicit EmbeddedKafkaConfig
an implicit Serializer for the type T
KafkaUnavailableException
if unable to connect to Kafka
Loaner pattern that allows running a code block with a newly created consumer.
Loaner pattern that allows running a code block with a newly created consumer. The consumer's lifecycle will be automatically handled and closed at the end of the given code block.
the function to execute that returns T
an implicit EmbeddedKafkaConfig
an implicit Serializer for the type K
an implicit Serializer for the type V
(Since version 2.4.1) Direct usage of KafkaProducer is discouraged, see loan method withProducer
(Since version 2.4.1) Direct usage of KafkaProducer is discouraged, see loan method withProducer
Trait for Producer-related actions.
an EmbeddedKafkaConfig