Consumes the first message available in a given topic, deserializing it as a String.
Consumes the first message available in a given topic, deserializing it as a String.
the topic to consume a message from
an implicit EmbeddedKafkaConfig
an implicit org.apache.kafka.common.serialization.Deserializer for the type T
the first message consumed from the given topic, with a type T
if unable to connect to Kafka
TimeoutExceptionif unable to consume a message within 5 seconds
Creates a topic with a custom configuration
Creates a topic with a custom configuration
the topic name
per topic configuration Map
number of partitions Int
replication factor Int
an implicit EmbeddedKafkaConfig
Returns whether the in memory Kafka and Zookeeper are running.
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
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
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
if unable to connect to Kafka
Starts a ZooKeeper instance and a Kafka broker in memory.
Starts a ZooKeeper instance and a Kafka broker in memory.
an implicit EmbeddedKafkaConfig
Stops the in memory ZooKeeper instance and Kafka broker.
Starts a ZooKeeper instance and a Kafka broker, then executes the body passed as a parameter.
Starts a ZooKeeper instance and a Kafka broker, then executes the body passed as a parameter.
the function to execute
an implicit EmbeddedKafkaConfig