net.manub.embeddedkafka.streams
Execute Kafka streams and pass a block of code that can operate while the streams are active.
Execute Kafka streams and pass a block of code that can operate while the streams are active. The code block can be used for publishing and consuming messages in Kafka.
the topics that should be created in Kafka before launching the streams.
the streams topology that will be used to instantiate the streams with a default configuration (all state directories are different and in temp folders)
additional KafkaStreams configuration (overwrite existing keys in default config)
the code block that will executed while the streams are active. Once the block has been executed the streams will be closed.
(Since version 2.4.1) Direct usage of KafkaConsumer is discouraged, see loan method withConsumer
(Since version 2.4.1) Direct usage of KafkaProducer is discouraged, see loan method withProducer
Helper trait for running Kafka Streams. Use EmbeddedKafkaStreamsSupport.runStreams to execute your streams.
EmbeddedKafkaStreamsSupport