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 Decoder for the type T
the first message consumed from the given topic, with a type T
KafkaUnavailableException
if unable to connect to Kafka
TimeoutException
if unable to consume a message within 3 seconds
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
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
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